<DataBase_Schema>DiffData<Database><Name>Compare results for Source DB XML snapshot: dbrighton-5750_Base_SCHEMA.xml,
-- with Target DB XML snapshot: dbrighton-5750_PMICTest_SCHEMA.xml.
-- Results are the SQL changes necessary to match
-- the Target DB schema to the Source DB schema.</Name><Date>12/17/2008</Date><Time>1:37 PM</Time></Database><TABLE Action="Alter"><TABLE_NAME>agency</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>agency</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE /><TABLE_INDEX><TABLE_NAME>agency</TABLE_NAME><index_name>ix_agency_num</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>agency_number</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>agent</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>agent</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>agent</TABLE_NAME>
    <Column_Name>company_code</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>10</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>agent</TABLE_NAME>
    <Column_Name>descriptor</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>255</Length>
    <Prec>255</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
<TABLE_INDEX><TABLE_NAME>agent</TABLE_NAME><index_name>_dta_index_agent_16_541961007__K1_K2</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>person_id, agent_number</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>aus_event</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>aus_event</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>aus_event</TABLE_NAME>
    <Column_Name>param_data</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>4000</Length>
    <Prec>4000</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>aus_event</TABLE_NAME>
    <Column_Name>workflow_app_id</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>40</Length>
    <Prec>40</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>aus_event</TABLE_NAME>
    <Column_Name>start_datetime</Column_Name>
    <Type>datetime</Type>
    <Base_Type>datetime</Base_Type>
    <Length>8</Length>
    <Prec>23</Prec>
    <Scale>3</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
</TABLE><TABLE Action="Alter"><TABLE_NAME>aus_security_privilege</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>aus_security_privilege</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>aus_security_privilege</TABLE_NAME>
    <Column_Name>name</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>20</Length>
    <Prec>20</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>0</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
<DropAdd_References Action="ReAdd"><TABLE_NAME>aus_security_privilege</TABLE_NAME><PK_Table>aus_security_subsystem</PK_Table><FK_Table>aus_security_privilege</FK_Table><Constraint>FK_sec_priv_sec_subsys</Constraint><cKeyCol1>subsystem_name</cKeyCol1><cRefCol1>subsystem_name</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></DropAdd_References><DropAdd_Indexes Action="ReAdd"><TABLE_NAME>aus_security_privilege</TABLE_NAME><index_name>IX_aus_security_privilege</index_name><index_description>nonclustered, unique, unique key located on PRIMARY</index_description><index_keys>subsystem_name, name</index_keys></DropAdd_Indexes></TABLE><TABLE Action="Alter"><TABLE_NAME>aus_user</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>aus_user</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>aus_user</TABLE_NAME>
    <Column_Name>password</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>aus_user</TABLE_NAME>
    <Column_Name>use_single_sign_on</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
<TABLE_INDEX><TABLE_NAME>aus_user</TABLE_NAME><index_name>ix_user_person</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>person_id</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>billing_code</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>billing_code</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>billing_code</TABLE_NAME>
    <Column_Name>g_number</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>15</Length>
    <Prec>15</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>0</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
<DropAdd_Indexes Action="ReAdd"><TABLE_NAME>billing_code</TABLE_NAME><index_name>IX_billing_code</index_name><index_description>nonclustered, unique, unique key located on PRIMARY</index_description><index_keys>tpa_code, line_of_business_code, g_number</index_keys></DropAdd_Indexes></TABLE><TABLE Action="Add"><TABLE_NAME>bisok_document</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>TABLE</TABLE_TYPE><COLUMN><TABLE_NAME>bisok_document</TABLE_NAME><Column_Name>doc_id</Column_Name><Type>int</Type><Base_Type>int</Base_Type><Length>4</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>bisok_document</TABLE_NAME><Column_Name>policy_number</Column_Name><Type>char</Type><Base_Type>char</Base_Type><Length>20</Length><Prec>20</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>bisok_document</TABLE_NAME><Column_Name>last_update_date</Column_Name><Type>datetime</Type><Base_Type>datetime</Base_Type><Length>8</Length><Prec>23</Prec><Scale>3</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>bisok_document</TABLE_NAME><Column_Name>is_new</Column_Name><Type>char</Type><Base_Type>char</Base_Type><Length>5</Length><Prec>5</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><TABLE_FILEGROUP><TABLE_NAME>bisok_document</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE><TABLE_NAME>bisok_document</TABLE_NAME></TABLE_REFERENCE><TABLE_INDEX><TABLE_NAME>bisok_document</TABLE_NAME><index_name>PK_bisok_document</index_name><index_description>clustered, unique, primary key located on PRIMARY</index_description><index_keys>doc_id</index_keys></TABLE_INDEX><TABLE_CONSTRAINTS><TABLE_NAME>bisok_document</TABLE_NAME></TABLE_CONSTRAINTS></TABLE><TABLE Action="Alter"><TABLE_NAME>company</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>company</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>company</TABLE_NAME>
    <Column_Name>person_id</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>0</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>company</TABLE_NAME>
    <Column_Name>full_time_employee_count</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>company</TABLE_NAME>
    <Column_Name>percent_eligible_employees</Column_Name>
    <Type>numeric</Type>
    <Base_Type>numeric</Base_Type>
    <Length>5</Length>
    <Prec>5</Prec>
    <Scale>2</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>company</TABLE_NAME>
    <Column_Name>percent_eligible_dependants</Column_Name>
    <Type>numeric</Type>
    <Base_Type>numeric</Base_Type>
    <Length>5</Length>
    <Prec>5</Prec>
    <Scale>2</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>company</TABLE_NAME>
    <Column_Name>current_cobra_indicator</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>company</TABLE_NAME>
    <Column_Name>expiration_date</Column_Name>
    <Type>datetime</Type>
    <Base_Type>datetime</Base_Type>
    <Length>8</Length>
    <Prec>23</Prec>
    <Scale>3</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
<DropAdd_References Action="ReAdd"><TABLE_NAME>company</TABLE_NAME><PK_Table>person</PK_Table><FK_Table>company</FK_Table><Constraint>FK_COMPANY_REF_8638_PERSON</Constraint><cKeyCol1>person_id</cKeyCol1><cRefCol1>person_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></DropAdd_References><TABLE_ORIG_REFERENCE><TABLE_NAME>company</TABLE_NAME><PK_Table>company</PK_Table><FK_Table>policy</FK_Table><Constraint>FK_POLICY_REF_17415_COMPANY</Constraint><cKeyCol1>company_code</cKeyCol1><cRefCol1>company_code</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_ORIG_REFERENCE><TABLE_ORIG_REFERENCE><TABLE_NAME>company</TABLE_NAME><PK_Table>company</PK_Table><FK_Table>form</FK_Table><Constraint>FK_form_company</Constraint><cKeyCol1>company_code</cKeyCol1><cRefCol1>company_code</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_ORIG_REFERENCE><TABLE_ORIG_REFERENCE><TABLE_NAME>company</TABLE_NAME><PK_Table>company</PK_Table><FK_Table>company_mib</FK_Table><Constraint>FK_COMPANY__REF_8670_COMPANY</Constraint><cKeyCol1>company_code</cKeyCol1><cRefCol1>company_code</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_ORIG_REFERENCE><TABLE_ORIG_REFERENCE><TABLE_NAME>company</TABLE_NAME><PK_Table>company</PK_Table><FK_Table>lab_configuration</FK_Table><Constraint>FK_LAB_CONF_REFERENCE_COMPANY</Constraint><cKeyCol1>company_code</cKeyCol1><cRefCol1>company_code</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_ORIG_REFERENCE><TABLE_ORIG_REFERENCE><TABLE_NAME>company</TABLE_NAME><PK_Table>company</PK_Table><FK_Table>policy_person_retro_info</FK_Table><Constraint>FK_pp_retro_info_company</Constraint><cKeyCol1>company_code</cKeyCol1><cRefCol1>company_code</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_ORIG_REFERENCE><TABLE_INDEX><TABLE_NAME>company</TABLE_NAME><index_name>ix_company_code</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>company_code</index_keys></TABLE_INDEX><TABLE_INDEX><TABLE_NAME>company</TABLE_NAME><index_name>PK_COMPANY</index_name><index_description>clustered, unique, primary key located on PRIMARY</index_description><index_keys>person_id</index_keys></TABLE_INDEX><TABLE_ORIG_INDEX><TABLE_NAME>company</TABLE_NAME><index_name>PK_COMPANY</index_name><index_description>clustered, unique, primary key located on PRIMARY</index_description><index_keys>company_code</index_keys></TABLE_ORIG_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>company_mib</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>company_mib</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE /><TABLE_ORIG_REFERENCE><TABLE_NAME>company_mib</TABLE_NAME><PK_Table>company</PK_Table><FK_Table>company_mib</FK_Table><Constraint>FK_COMPANY__REF_8670_COMPANY</Constraint><cKeyCol1>company_code</cKeyCol1><cRefCol1>company_code</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_ORIG_REFERENCE></TABLE><TABLE Action="Alter"><TABLE_NAME>coverage_benefits</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>coverage_benefits</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>coverage_benefits</TABLE_NAME>
    <Column_Name>coverage_status</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>20</Length>
    <Prec>20</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>0</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>coverage_benefits</TABLE_NAME>
    <Column_Name>reinsurance_flag</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>coverage_benefits</TABLE_NAME>
    <Column_Name>benefit_duration</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
<TABLE_INDEX><TABLE_NAME>coverage_benefits</TABLE_NAME><index_name>ix_cov_benfit_pers</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>policy_coverage_id</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>coverage_benefits_party</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>coverage_benefits_party</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>coverage_benefits_party</TABLE_NAME>
    <Column_Name>height_inches</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>coverage_benefits_party</TABLE_NAME>
    <Column_Name>weight_pounds</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
<TABLE_REFERENCE><TABLE_NAME>coverage_benefits_party</TABLE_NAME><PK_Table>person</PK_Table><FK_Table>coverage_benefits_party</FK_Table><Constraint>FK_cov_ben_pers_id</Constraint><cKeyCol1>person_id</cKeyCol1><cRefCol1>person_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_REFERENCE><TABLE_INDEX><TABLE_NAME>coverage_benefits_party</TABLE_NAME><index_name>ix_cov_bene_party</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>person_id</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>coverage_person</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>coverage_person</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE /><TABLE_REFERENCE><TABLE_NAME>coverage_person</TABLE_NAME><PK_Table>coverage_person</PK_Table><FK_Table>coverage_person_fund_alloc</FK_Table><Constraint>FK_cov_pers_fund</Constraint><cKeyCol1>coverage_person_id</cKeyCol1><cRefCol1>coverage_person_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_REFERENCE><TABLE_REFERENCE><TABLE_NAME>coverage_person</TABLE_NAME><PK_Table>coverage_person</PK_Table><FK_Table>coverage_person_reinsurer</FK_Table><Constraint>FK_cov_pers_reinsurer_cov</Constraint><cKeyCol1>coverage_person_id</cKeyCol1><cRefCol1>coverage_person_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_REFERENCE><TABLE_INDEX><TABLE_NAME>coverage_person</TABLE_NAME><index_name>ix_cov_party_role</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>role_id</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>coverage_person_amendment</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>coverage_person_amendment</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>coverage_person_amendment</TABLE_NAME>
    <Column_Name>amendment_code</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>20</Length>
    <Prec>20</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
<TABLE_INDEX><TABLE_NAME>coverage_person_amendment</TABLE_NAME><index_name>ix_amendment_cov_pers_id</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>coverage_person_id</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>coverage_person_beneficiary</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>coverage_person_beneficiary</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>coverage_person_beneficiary</TABLE_NAME>
    <Column_Name>benefit_type</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
</TABLE><TABLE Action="Alter"><TABLE_NAME>coverage_person_extra_info</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>coverage_person_extra_info</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE /><TABLE_INDEX><TABLE_NAME>coverage_person_extra_info</TABLE_NAME><index_name>ix_cov_xtra_person</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>coverage_person_id</index_keys></TABLE_INDEX></TABLE><TABLE Action="Add"><TABLE_NAME>coverage_person_fund_alloc</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>TABLE</TABLE_TYPE><COLUMN><TABLE_NAME>coverage_person_fund_alloc</TABLE_NAME><Column_Name>fund_allocation_id</Column_Name><Type>int</Type><Base_Type>int</Base_Type><Length>4</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>coverage_person_fund_alloc</TABLE_NAME><Column_Name>coverage_person_id</Column_Name><Type>int</Type><Base_Type>int</Base_Type><Length>4</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>coverage_person_fund_alloc</TABLE_NAME><Column_Name>fund_code</Column_Name><Type>char</Type><Base_Type>char</Base_Type><Length>10</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>coverage_person_fund_alloc</TABLE_NAME><Column_Name>percent_allocation</Column_Name><Type>numeric</Type><Base_Type>numeric</Base_Type><Length>5</Length><Prec>5</Prec><Scale>2</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><TABLE_FILEGROUP><TABLE_NAME>coverage_person_fund_alloc</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE><TABLE_NAME>coverage_person_fund_alloc</TABLE_NAME><PK_Table>coverage_person</PK_Table><FK_Table>coverage_person_fund_alloc</FK_Table><Constraint>FK_cov_pers_fund</Constraint><cKeyCol1>coverage_person_id</cKeyCol1><cRefCol1>coverage_person_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_REFERENCE><TABLE_INDEX><TABLE_NAME>coverage_person_fund_alloc</TABLE_NAME><index_name>ix_fund_cov_person</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>coverage_person_id</index_keys></TABLE_INDEX><TABLE_INDEX><TABLE_NAME>coverage_person_fund_alloc</TABLE_NAME><index_name>PK_cov_pers_fund</index_name><index_description>clustered, unique, primary key located on PRIMARY</index_description><index_keys>fund_allocation_id</index_keys></TABLE_INDEX><TABLE_CONSTRAINTS><TABLE_NAME>coverage_person_fund_alloc</TABLE_NAME></TABLE_CONSTRAINTS></TABLE><TABLE Action="Alter"><TABLE_NAME>coverage_person_impairment</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>coverage_person_impairment</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>coverage_person_impairment</TABLE_NAME>
    <Column_Name>impairment_restriction_code</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>20</Length>
    <Prec>20</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
<DropAdd_References Action="ReAdd"><TABLE_NAME>coverage_person_impairment</TABLE_NAME><PK_Table>impairment_restriction</PK_Table><FK_Table>coverage_person_impairment</FK_Table><Constraint>FK_cov_pers_impairment_code</Constraint><cKeyCol1>impairment_restriction_code</cKeyCol1><cRefCol1>impairment_restriction_code</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></DropAdd_References><TABLE_INDEX><TABLE_NAME>coverage_person_impairment</TABLE_NAME><index_name>ix_impairment_cov_pers_id</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>coverage_person_id</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>coverage_person_insured</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>coverage_person_insured</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>coverage_person_insured</TABLE_NAME>
    <Column_Name>medical_load_percentage</Column_Name>
    <Type>numeric</Type>
    <Base_Type>numeric</Base_Type>
    <Length>5</Length>
    <Prec>5</Prec>
    <Scale>2</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>coverage_person_insured</TABLE_NAME>
    <Column_Name>rx_load_percentage</Column_Name>
    <Type>numeric</Type>
    <Base_Type>numeric</Base_Type>
    <Length>5</Length>
    <Prec>5</Prec>
    <Scale>2</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>coverage_person_insured</TABLE_NAME>
    <Column_Name>industry_load_percentage</Column_Name>
    <Type>numeric</Type>
    <Base_Type>numeric</Base_Type>
    <Length>5</Length>
    <Prec>5</Prec>
    <Scale>2</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>coverage_person_insured</TABLE_NAME>
    <Column_Name>copay_amount</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>coverage_person_insured</TABLE_NAME>
    <Column_Name>deductable_amount</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>coverage_person_insured</TABLE_NAME>
    <Column_Name>coinsurance_limit</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>coverage_person_insured</TABLE_NAME>
    <Column_Name>max_out_pocket_amount</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>coverage_person_insured</TABLE_NAME>
    <Column_Name>hsa_indicator</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>coverage_person_insured</TABLE_NAME>
    <Column_Name>rx_drug_option</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>10</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>coverage_person_insured</TABLE_NAME>
    <Column_Name>joint_age</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>coverage_person_insured</TABLE_NAME>
    <Column_Name>approved_plan_code_id</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>10</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>coverage_person_insured</TABLE_NAME>
    <Column_Name>guarantee_period</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>coverage_person_insured</TABLE_NAME>
    <Column_Name>ppo_id</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>coverage_person_insured</TABLE_NAME>
    <Column_Name>coverage_duration</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>coverage_person_insured</TABLE_NAME>
    <Column_Name>do_not_offer_flag</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>coverage_person_insured</TABLE_NAME>
    <Column_Name>exchange_flag</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>coverage_person_insured</TABLE_NAME>
    <Column_Name>issue_age</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
<TABLE_REFERENCE><TABLE_NAME>coverage_person_insured</TABLE_NAME><PK_Table>person</PK_Table><FK_Table>coverage_person_insured</FK_Table><Constraint>FK_cov_ppo_id</Constraint><cKeyCol1>ppo_id</cKeyCol1><cRefCol1>person_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_REFERENCE><TABLE_INDEX><TABLE_NAME>coverage_person_insured</TABLE_NAME><index_name>ix_cov_ppo_id</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>ppo_id</index_keys></TABLE_INDEX></TABLE><TABLE Action="Add"><TABLE_NAME>coverage_person_reinsurer</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>TABLE</TABLE_TYPE><COLUMN><TABLE_NAME>coverage_person_reinsurer</TABLE_NAME><Column_Name>coverage_person_reinsurer_id</Column_Name><Type>int</Type><Base_Type>int</Base_Type><Length>4</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>coverage_person_reinsurer</TABLE_NAME><Column_Name>coverage_person_id</Column_Name><Type>int</Type><Base_Type>int</Base_Type><Length>4</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>coverage_person_reinsurer</TABLE_NAME><Column_Name>company_code</Column_Name><Type>char</Type><Base_Type>char</Base_Type><Length>10</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>coverage_person_reinsurer</TABLE_NAME><Column_Name>treaty_type</Column_Name><Type>char</Type><Base_Type>char</Base_Type><Length>1</Length><Prec>1</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>coverage_person_reinsurer</TABLE_NAME><Column_Name>cession_number</Column_Name><Type>char</Type><Base_Type>char</Base_Type><Length>10</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>coverage_person_reinsurer</TABLE_NAME><Column_Name>reinsurance_type</Column_Name><Type>char</Type><Base_Type>char</Base_Type><Length>1</Length><Prec>1</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>coverage_person_reinsurer</TABLE_NAME><Column_Name>retention_amount</Column_Name><Type>numeric</Type><Base_Type>numeric</Base_Type><Length>9</Length><Prec>12</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>coverage_person_reinsurer</TABLE_NAME><Column_Name>reinsurance_amount</Column_Name><Type>numeric</Type><Base_Type>numeric</Base_Type><Length>9</Length><Prec>12</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>coverage_person_reinsurer</TABLE_NAME><Column_Name>adb_reinsured_amount</Column_Name><Type>numeric</Type><Base_Type>numeric</Base_Type><Length>9</Length><Prec>12</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>coverage_person_reinsurer</TABLE_NAME><Column_Name>placed</Column_Name><Type>int</Type><Base_Type>int</Base_Type><Length>4</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>coverage_person_reinsurer</TABLE_NAME><Column_Name>origin_code</Column_Name><Type>char</Type><Base_Type>char</Base_Type><Length>10</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><TABLE_FILEGROUP><TABLE_NAME>coverage_person_reinsurer</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE><TABLE_NAME>coverage_person_reinsurer</TABLE_NAME><PK_Table>coverage_person</PK_Table><FK_Table>coverage_person_reinsurer</FK_Table><Constraint>FK_cov_pers_reinsurer_cov</Constraint><cKeyCol1>coverage_person_id</cKeyCol1><cRefCol1>coverage_person_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_REFERENCE><TABLE_INDEX><TABLE_NAME>coverage_person_reinsurer</TABLE_NAME><index_name>ix_reviewer_cov_pers_id</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>coverage_person_id</index_keys></TABLE_INDEX><TABLE_INDEX><TABLE_NAME>coverage_person_reinsurer</TABLE_NAME><index_name>PK_coverage_person_reinsurer</index_name><index_description>clustered, unique, primary key located on PRIMARY</index_description><index_keys>coverage_person_reinsurer_id</index_keys></TABLE_INDEX><TABLE_CONSTRAINTS><TABLE_NAME>coverage_person_reinsurer</TABLE_NAME></TABLE_CONSTRAINTS></TABLE><TABLE Action="Alter"><TABLE_NAME>coverage_person_worksheet</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>coverage_person_worksheet</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>coverage_person_worksheet</TABLE_NAME>
    <Column_Name>debit</Column_Name>
    <Type>numeric</Type>
    <Base_Type>numeric</Base_Type>
    <Length>9</Length>
    <Prec>12</Prec>
    <Scale>2</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
<TABLE_INDEX><TABLE_NAME>coverage_person_worksheet</TABLE_NAME><index_name>ix_cov_wrksht_pid</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>coverage_person_id</index_keys></TABLE_INDEX></TABLE><TABLE Action="Add"><TABLE_NAME>doc_mgmt_email_history</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>TABLE</TABLE_TYPE><COLUMN><TABLE_NAME>doc_mgmt_email_history</TABLE_NAME><Column_Name>document_name</Column_Name><Type>varchar</Type><Base_Type>varchar</Base_Type><Length>255</Length><Prec>255</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>doc_mgmt_email_history</TABLE_NAME><Column_Name>email_address_list</Column_Name><Type>varchar</Type><Base_Type>varchar</Base_Type><Length>1000</Length><Prec>1000</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>doc_mgmt_email_history</TABLE_NAME><Column_Name>subject</Column_Name><Type>varchar</Type><Base_Type>varchar</Base_Type><Length>1000</Length><Prec>1000</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>doc_mgmt_email_history</TABLE_NAME><Column_Name>message</Column_Name><Type>text</Type><Base_Type>text</Base_Type><Length>16</Length><Prec>2147483647</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>doc_mgmt_email_history</TABLE_NAME><Column_Name>date_sent</Column_Name><Type>datetime</Type><Base_Type>datetime</Base_Type><Length>8</Length><Prec>23</Prec><Scale>3</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><TABLE_FILEGROUP><TABLE_NAME>doc_mgmt_email_history</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE><TABLE_NAME>doc_mgmt_email_history</TABLE_NAME></TABLE_REFERENCE><TABLE_INDEX><TABLE_NAME>doc_mgmt_email_history</TABLE_NAME><index_name>PK_document_name</index_name><index_description>clustered, unique, primary key located on PRIMARY</index_description><index_keys>document_name</index_keys></TABLE_INDEX><TABLE_CONSTRAINTS><TABLE_NAME>doc_mgmt_email_history</TABLE_NAME></TABLE_CONSTRAINTS></TABLE><TABLE Action="Alter"><TABLE_NAME>doc_mgmt_history</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>doc_mgmt_history</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>doc_mgmt_history</TABLE_NAME>
    <Column_Name>document_name</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>255</Length>
    <Prec>255</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
</TABLE><TABLE Action="Add"><TABLE_NAME>employer_plan</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>TABLE</TABLE_TYPE><COLUMN><TABLE_NAME>employer_plan</TABLE_NAME><Column_Name>employer_plan_id</Column_Name><Type>int</Type><Base_Type>int</Base_Type><Length>4</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>employer_plan</TABLE_NAME><Column_Name>employer_id</Column_Name><Type>int</Type><Base_Type>int</Base_Type><Length>4</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>employer_plan</TABLE_NAME><Column_Name>plan_code</Column_Name><Type>char</Type><Base_Type>char</Base_Type><Length>10</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>employer_plan</TABLE_NAME><Column_Name>plan_name</Column_Name><Type>varchar</Type><Base_Type>varchar</Base_Type><Length>50</Length><Prec>50</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>employer_plan</TABLE_NAME><Column_Name>copay_amount</Column_Name><Type>varchar</Type><Base_Type>varchar</Base_Type><Length>50</Length><Prec>50</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>employer_plan</TABLE_NAME><Column_Name>deductible_amount</Column_Name><Type>varchar</Type><Base_Type>varchar</Base_Type><Length>50</Length><Prec>50</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>employer_plan</TABLE_NAME><Column_Name>coinsurance_amount</Column_Name><Type>varchar</Type><Base_Type>varchar</Base_Type><Length>50</Length><Prec>50</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>employer_plan</TABLE_NAME><Column_Name>max_out_pocket_amount</Column_Name><Type>varchar</Type><Base_Type>varchar</Base_Type><Length>50</Length><Prec>50</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>employer_plan</TABLE_NAME><Column_Name>hsa_indicator</Column_Name><Type>int</Type><Base_Type>int</Base_Type><Length>4</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>employer_plan</TABLE_NAME><Column_Name>rx_drug_option</Column_Name><Type>char</Type><Base_Type>char</Base_Type><Length>10</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><TABLE_FILEGROUP><TABLE_NAME>employer_plan</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE><TABLE_NAME>employer_plan</TABLE_NAME><PK_Table>person</PK_Table><FK_Table>employer_plan</FK_Table><Constraint>FK_EMPLOYER_PERSON</Constraint><cKeyCol1>employer_id</cKeyCol1><cRefCol1>person_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_REFERENCE><TABLE_REFERENCE><TABLE_NAME>employer_plan</TABLE_NAME><PK_Table>tl_plan_code</PK_Table><FK_Table>employer_plan</FK_Table><Constraint>FK_EMPLOYER_PLAN_CODE</Constraint><cKeyCol1>plan_code</cKeyCol1><cRefCol1>plan_code_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_REFERENCE><TABLE_INDEX><TABLE_NAME>employer_plan</TABLE_NAME><index_name>IX_employer_plan</index_name><index_description>nonclustered, unique located on PRIMARY</index_description><index_keys>employer_id, plan_code</index_keys></TABLE_INDEX><TABLE_INDEX><TABLE_NAME>employer_plan</TABLE_NAME><index_name>ix_employer_plan_employer</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>employer_id</index_keys></TABLE_INDEX><TABLE_INDEX><TABLE_NAME>employer_plan</TABLE_NAME><index_name>PK_employer_plan</index_name><index_description>clustered, unique, primary key located on PRIMARY</index_description><index_keys>employer_plan_id</index_keys></TABLE_INDEX><TABLE_CONSTRAINTS><TABLE_NAME>employer_plan</TABLE_NAME></TABLE_CONSTRAINTS></TABLE><TABLE Action="Alter"><TABLE_NAME>evidence_status</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>evidence_status</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE /><TABLE_INDEX><TABLE_NAME>evidence_status</TABLE_NAME><index_name>ix_evidence_status</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>requirement_information_id</index_keys></TABLE_INDEX></TABLE><TABLE Action="Add"><TABLE_NAME>FileStore</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>TABLE</TABLE_TYPE><COLUMN><TABLE_NAME>FileStore</TABLE_NAME><Column_Name>Id</Column_Name><Type>int</Type><Base_Type>int</Base_Type><Length>4</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>FileStore</TABLE_NAME><Column_Name>FileName</Column_Name><Type>varchar</Type><Base_Type>varchar</Base_Type><Length>900</Length><Prec>900</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>FileStore</TABLE_NAME><Column_Name>FileData</Column_Name><Type>image</Type><Base_Type>image</Base_Type><Length>16</Length><Prec>2147483647</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>FileStore</TABLE_NAME><Column_Name>CreatedDate</Column_Name><Type>datetime</Type><Base_Type>datetime</Base_Type><Length>8</Length><Prec>23</Prec><Scale>3</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>FileStore</TABLE_NAME><Column_Name>LastModifiedDate</Column_Name><Type>datetime</Type><Base_Type>datetime</Base_Type><Length>8</Length><Prec>23</Prec><Scale>3</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><TABLE_FILEGROUP><TABLE_NAME>FileStore</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE><TABLE_NAME>FileStore</TABLE_NAME></TABLE_REFERENCE><TABLE_INDEX><TABLE_NAME>FileStore</TABLE_NAME><index_name>IX_FileStore_CreateDate</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>CreatedDate</index_keys></TABLE_INDEX><TABLE_INDEX><TABLE_NAME>FileStore</TABLE_NAME><index_name>IX_FileStore_FileName</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>FileName</index_keys></TABLE_INDEX><TABLE_INDEX><TABLE_NAME>FileStore</TABLE_NAME><index_name>IX_FileStore_Id</index_name><index_description>clustered, unique located on PRIMARY</index_description><index_keys>Id</index_keys></TABLE_INDEX><TABLE_INDEX><TABLE_NAME>FileStore</TABLE_NAME><index_name>IX_FileStore_LastModDate</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>LastModifiedDate</index_keys></TABLE_INDEX><TABLE_INDEX><TABLE_NAME>FileStore</TABLE_NAME><index_name>PK_FileStore</index_name><index_description>nonclustered, unique, primary key located on PRIMARY</index_description><index_keys>Id</index_keys></TABLE_INDEX><TABLE_CONSTRAINTS><TABLE_NAME>FileStore</TABLE_NAME></TABLE_CONSTRAINTS></TABLE><TABLE Action="Alter"><TABLE_NAME>form</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>form</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE /><TABLE_ORIG_REFERENCE><TABLE_NAME>form</TABLE_NAME><PK_Table>company</PK_Table><FK_Table>form</FK_Table><Constraint>FK_form_company</Constraint><cKeyCol1>company_code</cKeyCol1><cRefCol1>company_code</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_ORIG_REFERENCE><TABLE_ORIG_REFERENCE><TABLE_NAME>form</TABLE_NAME><PK_Table>form</PK_Table><FK_Table>form_instance</FK_Table><Constraint>FK_form_instance_form</Constraint><cKeyCol1>form_code</cKeyCol1><cRefCol1>form_code</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_ORIG_REFERENCE></TABLE><TABLE Action="Add"><TABLE_NAME>form_data_attachment</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>TABLE</TABLE_TYPE><COLUMN><TABLE_NAME>form_data_attachment</TABLE_NAME><Column_Name>form_data_attachment_id</Column_Name><Type>int</Type><Base_Type>int</Base_Type><Length>4</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>form_data_attachment</TABLE_NAME><Column_Name>requirement_information_id</Column_Name><Type>int</Type><Base_Type>int</Base_Type><Length>4</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>form_data_attachment</TABLE_NAME><Column_Name>attachment_type</Column_Name><Type>char</Type><Base_Type>char</Base_Type><Length>5</Length><Prec>5</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>form_data_attachment</TABLE_NAME><Column_Name>attachment_date</Column_Name><Type>datetime</Type><Base_Type>datetime</Base_Type><Length>8</Length><Prec>23</Prec><Scale>3</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>form_data_attachment</TABLE_NAME><Column_Name>encoding_type</Column_Name><Type>char</Type><Base_Type>char</Base_Type><Length>10</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>form_data_attachment</TABLE_NAME><Column_Name>attachment_data</Column_Name><Type>text</Type><Base_Type>text</Base_Type><Length>16</Length><Prec>2147483647</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><TABLE_FILEGROUP><TABLE_NAME>form_data_attachment</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE><TABLE_NAME>form_data_attachment</TABLE_NAME><PK_Table>form_instance</PK_Table><FK_Table>form_data_attachment</FK_Table><Constraint>FK_frm_data_attch</Constraint><cKeyCol1>requirement_information_id</cKeyCol1><cRefCol1>requirement_information_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_REFERENCE><TABLE_INDEX><TABLE_NAME>form_data_attachment</TABLE_NAME><index_name>ix_frm_data_attch</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>requirement_information_id</index_keys></TABLE_INDEX><TABLE_INDEX><TABLE_NAME>form_data_attachment</TABLE_NAME><index_name>PK_frm_data_attch</index_name><index_description>clustered, unique, primary key located on PRIMARY</index_description><index_keys>form_data_attachment_id</index_keys></TABLE_INDEX><TABLE_CONSTRAINTS><TABLE_NAME>form_data_attachment</TABLE_NAME></TABLE_CONSTRAINTS></TABLE><TABLE Action="Add"><TABLE_NAME>form_data_document</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>TABLE</TABLE_TYPE><COLUMN><TABLE_NAME>form_data_document</TABLE_NAME><Column_Name>document_id</Column_Name><Type>int</Type><Base_Type>int</Base_Type><Length>4</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>form_data_document</TABLE_NAME><Column_Name>requirement_information_id</Column_Name><Type>int</Type><Base_Type>int</Base_Type><Length>4</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>form_data_document</TABLE_NAME><Column_Name>document_name</Column_Name><Type>char</Type><Base_Type>char</Base_Type><Length>255</Length><Prec>255</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>form_data_document</TABLE_NAME><Column_Name>document_path</Column_Name><Type>char</Type><Base_Type>char</Base_Type><Length>255</Length><Prec>255</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>form_data_document</TABLE_NAME><Column_Name>added_date</Column_Name><Type>datetime</Type><Base_Type>datetime</Base_Type><Length>8</Length><Prec>23</Prec><Scale>3</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>form_data_document</TABLE_NAME><Column_Name>added_by</Column_Name><Type>int</Type><Base_Type>int</Base_Type><Length>4</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><TABLE_FILEGROUP><TABLE_NAME>form_data_document</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE><TABLE_NAME>form_data_document</TABLE_NAME><PK_Table>form_instance</PK_Table><FK_Table>form_data_document</FK_Table><Constraint>FK_FORM_DOC_INFO_ID</Constraint><cKeyCol1>requirement_information_id</cKeyCol1><cRefCol1>requirement_information_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_REFERENCE><TABLE_REFERENCE><TABLE_NAME>form_data_document</TABLE_NAME><PK_Table>form_data_document</PK_Table><FK_Table>form_data_document_template</FK_Table><Constraint>FK_TEMPLATE_DOC_ID</Constraint><cKeyCol1>document_id</cKeyCol1><cRefCol1>document_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_REFERENCE><TABLE_INDEX><TABLE_NAME>form_data_document</TABLE_NAME><index_name>ix_form_doc_name</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>document_name</index_keys></TABLE_INDEX><TABLE_INDEX><TABLE_NAME>form_data_document</TABLE_NAME><index_name>PK_form_doc_id</index_name><index_description>clustered, unique, primary key located on PRIMARY</index_description><index_keys>document_id</index_keys></TABLE_INDEX><TABLE_CONSTRAINTS><TABLE_NAME>form_data_document</TABLE_NAME></TABLE_CONSTRAINTS></TABLE><TABLE Action="Add"><TABLE_NAME>form_data_document_template</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>TABLE</TABLE_TYPE><COLUMN><TABLE_NAME>form_data_document_template</TABLE_NAME><Column_Name>template_id</Column_Name><Type>int</Type><Base_Type>int</Base_Type><Length>4</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>form_data_document_template</TABLE_NAME><Column_Name>document_id</Column_Name><Type>int</Type><Base_Type>int</Base_Type><Length>4</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>form_data_document_template</TABLE_NAME><Column_Name>template_name</Column_Name><Type>char</Type><Base_Type>char</Base_Type><Length>255</Length><Prec>255</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><TABLE_FILEGROUP><TABLE_NAME>form_data_document_template</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE><TABLE_NAME>form_data_document_template</TABLE_NAME><PK_Table>form_data_document</PK_Table><FK_Table>form_data_document_template</FK_Table><Constraint>FK_TEMPLATE_DOC_ID</Constraint><cKeyCol1>document_id</cKeyCol1><cRefCol1>document_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_REFERENCE><TABLE_INDEX><TABLE_NAME>form_data_document_template</TABLE_NAME><index_name>ix_doc_template</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>template_name</index_keys></TABLE_INDEX><TABLE_INDEX><TABLE_NAME>form_data_document_template</TABLE_NAME><index_name>PK_doc_template_id</index_name><index_description>clustered, unique, primary key located on PRIMARY</index_description><index_keys>template_id</index_keys></TABLE_INDEX><TABLE_CONSTRAINTS><TABLE_NAME>form_data_document_template</TABLE_NAME></TABLE_CONSTRAINTS></TABLE><TABLE Action="Alter"><TABLE_NAME>form_instance</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>form_instance</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>form_instance</TABLE_NAME>
    <Column_Name>last_name</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>2500</Length>
    <Prec>2500</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>form_instance</TABLE_NAME>
    <Column_Name>first_name</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>100</Length>
    <Prec>100</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>form_instance</TABLE_NAME>
    <Column_Name>middle_name</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>100</Length>
    <Prec>100</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>form_instance</TABLE_NAME>
    <Column_Name>birthdate</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>form_instance</TABLE_NAME>
    <Column_Name>tax_id_no</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>form_instance</TABLE_NAME>
    <Column_Name>agent_number</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>30</Length>
    <Prec>30</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>form_instance</TABLE_NAME>
    <Column_Name>contact_id</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
<TABLE_REFERENCE><TABLE_NAME>form_instance</TABLE_NAME><PK_Table>form_instance</PK_Table><FK_Table>form_data_attachment</FK_Table><Constraint>FK_frm_data_attch</Constraint><cKeyCol1>requirement_information_id</cKeyCol1><cRefCol1>requirement_information_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_REFERENCE><TABLE_REFERENCE><TABLE_NAME>form_instance</TABLE_NAME><PK_Table>form_instance</PK_Table><FK_Table>form_data_document</FK_Table><Constraint>FK_FORM_DOC_INFO_ID</Constraint><cKeyCol1>requirement_information_id</cKeyCol1><cRefCol1>requirement_information_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_REFERENCE><TABLE_ORIG_REFERENCE><TABLE_NAME>form_instance</TABLE_NAME><PK_Table>form</PK_Table><FK_Table>form_instance</FK_Table><Constraint>FK_form_instance_form</Constraint><cKeyCol1>form_code</cKeyCol1><cRefCol1>form_code</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_ORIG_REFERENCE><TABLE_INDEX><TABLE_NAME>form_instance</TABLE_NAME><index_name>ix_form_inst_pol_pers</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>policy_person_id</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>impairment_restriction</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>impairment_restriction</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>impairment_restriction</TABLE_NAME>
    <Column_Name>impairment_restriction_code</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>20</Length>
    <Prec>20</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>0</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
<DropAdd_References Action="ReAdd"><TABLE_NAME>impairment_restriction</TABLE_NAME><PK_Table>impairment_restriction</PK_Table><FK_Table>coverage_person_impairment</FK_Table><Constraint>FK_cov_pers_impairment_code</Constraint><cKeyCol1>impairment_restriction_code</cKeyCol1><cRefCol1>impairment_restriction_code</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></DropAdd_References><DropAdd_Indexes Action="ReAdd"><TABLE_NAME>impairment_restriction</TABLE_NAME><index_name>PK_impairment_restriction</index_name><index_description>clustered, unique, primary key located on PRIMARY</index_description><index_keys>impairment_restriction_code</index_keys></DropAdd_Indexes></TABLE><TABLE Action="Alter"><TABLE_NAME>insured_application_info</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>insured_application_info</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>insured_application_info</TABLE_NAME>
    <Column_Name>birth_country</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>30</Length>
    <Prec>30</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>insured_application_info</TABLE_NAME>
    <Column_Name>residence_country</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>30</Length>
    <Prec>30</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>insured_application_info</TABLE_NAME>
    <Column_Name>drivers_license_number</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>insured_application_info</TABLE_NAME>
    <Column_Name>drivers_license_country_id</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>30</Length>
    <Prec>30</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>insured_application_info</TABLE_NAME>
    <Column_Name>citizenship_country_id</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>30</Length>
    <Prec>30</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>insured_application_info</TABLE_NAME>
    <Column_Name>occupation_code</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>insured_application_info</TABLE_NAME>
    <Column_Name>doctor_phone_areacode</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>3</Length>
    <Prec>3</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>insured_application_info</TABLE_NAME>
    <Column_Name>doctor_phone_prefix</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>3</Length>
    <Prec>3</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>insured_application_info</TABLE_NAME>
    <Column_Name>doctor_phone_suffix</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>4</Length>
    <Prec>4</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>insured_application_info</TABLE_NAME>
    <Column_Name>doctor_phone_extension</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>10</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>insured_application_info</TABLE_NAME>
    <Column_Name>airmiles_flag</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>insured_application_info</TABLE_NAME>
    <Column_Name>airmiles</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>25</Length>
    <Prec>25</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>insured_application_info</TABLE_NAME>
    <Column_Name>membership_number</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>10</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>insured_application_info</TABLE_NAME>
    <Column_Name>locality</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>20</Length>
    <Prec>20</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>insured_application_info</TABLE_NAME>
    <Column_Name>employee_number</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>14</Length>
    <Prec>14</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>insured_application_info</TABLE_NAME>
    <Column_Name>months_at_employer</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
<DropAdd_Indexes Action="ReAdd"><TABLE_NAME>insured_application_info</TABLE_NAME><index_name>IX_form_insured_birth_country</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>birth_country</index_keys></DropAdd_Indexes></TABLE><TABLE Action="Alter"><TABLE_NAME>insured_requirement</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>insured_requirement</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>insured_requirement</TABLE_NAME>
    <Column_Name>attached_document_id</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>255</Length>
    <Prec>255</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
<TABLE_INDEX><TABLE_NAME>insured_requirement</TABLE_NAME><index_name>ix_ins_req_followup_date</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>followup_date</index_keys></TABLE_INDEX><TABLE_INDEX><TABLE_NAME>insured_requirement</TABLE_NAME><index_name>ix_ins_req_prov_id</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>provider_order_id</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>lab_configuration</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>lab_configuration</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE /><TABLE_ORIG_REFERENCE><TABLE_NAME>lab_configuration</TABLE_NAME><PK_Table>company</PK_Table><FK_Table>lab_configuration</FK_Table><Constraint>FK_LAB_CONF_REFERENCE_COMPANY</Constraint><cKeyCol1>company_code</cKeyCol1><cRefCol1>company_code</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_ORIG_REFERENCE></TABLE><TABLE Action="Alter"><TABLE_NAME>lab_header</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>lab_header</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>lab_header</TABLE_NAME>
    <Column_Name>last_name</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>250</Length>
    <Prec>250</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>0</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>lab_header</TABLE_NAME>
    <Column_Name>first_name</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>100</Length>
    <Prec>100</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>0</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>lab_header</TABLE_NAME>
    <Column_Name>middle_name</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>100</Length>
    <Prec>100</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>lab_header</TABLE_NAME>
    <Column_Name>ssn</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>lab_header</TABLE_NAME>
    <Column_Name>birth_date</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
</TABLE><TABLE Action="Add"><TABLE_NAME>lpes_sequence_number</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>TABLE</TABLE_TYPE><COLUMN><TABLE_NAME>lpes_sequence_number</TABLE_NAME><Column_Name>id</Column_Name><Type>char</Type><Base_Type>char</Base_Type><Length>5</Length><Prec>5</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>lpes_sequence_number</TABLE_NAME><Column_Name>next_num</Column_Name><Type>int</Type><Base_Type>int</Base_Type><Length>4</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>lpes_sequence_number</TABLE_NAME><Column_Name>prefix</Column_Name><Type>char</Type><Base_Type>char</Base_Type><Length>5</Length><Prec>5</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><TABLE_FILEGROUP><TABLE_NAME>lpes_sequence_number</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE><TABLE_NAME>lpes_sequence_number</TABLE_NAME></TABLE_REFERENCE><TABLE_INDEX><TABLE_NAME>lpes_sequence_number</TABLE_NAME></TABLE_INDEX><TABLE_CONSTRAINTS><TABLE_NAME>lpes_sequence_number</TABLE_NAME></TABLE_CONSTRAINTS></TABLE><TABLE Action="Add"><TABLE_NAME>medical_provider</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>TABLE</TABLE_TYPE><COLUMN><TABLE_NAME>medical_provider</TABLE_NAME><Column_Name>client_id</Column_Name><Type>varchar</Type><Base_Type>varchar</Base_Type><Length>255</Length><Prec>255</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>medical_provider</TABLE_NAME><Column_Name>first_name</Column_Name><Type>varchar</Type><Base_Type>varchar</Base_Type><Length>255</Length><Prec>255</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>medical_provider</TABLE_NAME><Column_Name>last_name</Column_Name><Type>varchar</Type><Base_Type>varchar</Base_Type><Length>255</Length><Prec>255</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>medical_provider</TABLE_NAME><Column_Name>govt_id</Column_Name><Type>varchar</Type><Base_Type>varchar</Base_Type><Length>50</Length><Prec>50</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>medical_provider</TABLE_NAME><Column_Name>address_line1</Column_Name><Type>varchar</Type><Base_Type>varchar</Base_Type><Length>255</Length><Prec>255</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>medical_provider</TABLE_NAME><Column_Name>address_line2</Column_Name><Type>varchar</Type><Base_Type>varchar</Base_Type><Length>255</Length><Prec>255</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>medical_provider</TABLE_NAME><Column_Name>address_city</Column_Name><Type>varchar</Type><Base_Type>varchar</Base_Type><Length>255</Length><Prec>255</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>medical_provider</TABLE_NAME><Column_Name>address_state</Column_Name><Type>varchar</Type><Base_Type>varchar</Base_Type><Length>255</Length><Prec>255</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>medical_provider</TABLE_NAME><Column_Name>zip</Column_Name><Type>varchar</Type><Base_Type>varchar</Base_Type><Length>50</Length><Prec>50</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><TABLE_FILEGROUP><TABLE_NAME>medical_provider</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE><TABLE_NAME>medical_provider</TABLE_NAME></TABLE_REFERENCE><TABLE_INDEX><TABLE_NAME>medical_provider</TABLE_NAME></TABLE_INDEX><TABLE_CONSTRAINTS><TABLE_NAME>medical_provider</TABLE_NAME></TABLE_CONSTRAINTS></TABLE><TABLE Action="Alter"><TABLE_NAME>mib_code</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>mib_code</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>mib_code</TABLE_NAME>
    <Column_Name>reported_by</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>10</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
</TABLE><TABLE Action="Alter"><TABLE_NAME>mib_header</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>mib_header</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>mib_header</TABLE_NAME>
    <Column_Name>birth_date</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>mib_header</TABLE_NAME>
    <Column_Name>last_name</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>250</Length>
    <Prec>250</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>0</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>mib_header</TABLE_NAME>
    <Column_Name>first_name</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>100</Length>
    <Prec>100</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>0</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>mib_header</TABLE_NAME>
    <Column_Name>middle_name</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>100</Length>
    <Prec>100</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
<TABLE_INDEX><TABLE_NAME>mib_header</TABLE_NAME><index_name>ix_mib_req_inf_id</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>requirement_information_id</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>mvr_header</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>mvr_header</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>mvr_header</TABLE_NAME>
    <Column_Name>birth_date</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>mvr_header</TABLE_NAME>
    <Column_Name>soc_sec_no</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>mvr_header</TABLE_NAME>
    <Column_Name>last_name</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>250</Length>
    <Prec>250</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>0</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>mvr_header</TABLE_NAME>
    <Column_Name>first_name</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>100</Length>
    <Prec>100</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>0</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>mvr_header</TABLE_NAME>
    <Column_Name>middle_name</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>100</Length>
    <Prec>100</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>mvr_header</TABLE_NAME>
    <Column_Name>license_name</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>35</Length>
    <Prec>35</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
<TABLE_INDEX><TABLE_NAME>mvr_header</TABLE_NAME><index_name>ix_mvr_req_inf</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>requirement_information_id</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>notes</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>notes</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>notes</TABLE_NAME>
    <Column_Name>alt_topic</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>254</Length>
    <Prec>254</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>notes</TABLE_NAME>
    <Column_Name>alt_note</Column_Name>
    <Type>text</Type>
    <Base_Type>text</Base_Type>
    <Length>16</Length>
    <Prec>2147483647</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
<TABLE_INDEX><TABLE_NAME>notes</TABLE_NAME><index_name>ix_note_auth_comp</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>author, diary_date</index_keys></TABLE_INDEX><TABLE_INDEX><TABLE_NAME>notes</TABLE_NAME><index_name>ix_note_diary_date</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>diary_date</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>object_property</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>object_property</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE /><TABLE_INDEX><TABLE_NAME>object_property</TABLE_NAME><index_name>ix_obj_prop</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>object_id</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>occupation</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>occupation</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>occupation</TABLE_NAME>
    <Column_Name>occupation_code</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
</TABLE><TABLE Action="Alter"><TABLE_NAME>paramed</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>paramed</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>paramed</TABLE_NAME>
    <Column_Name>birthdate</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>paramed</TABLE_NAME>
    <Column_Name>last_name</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>250</Length>
    <Prec>250</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>paramed</TABLE_NAME>
    <Column_Name>first_name</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>100</Length>
    <Prec>100</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>paramed</TABLE_NAME>
    <Column_Name>middle_name</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>100</Length>
    <Prec>100</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>paramed</TABLE_NAME>
    <Column_Name>tax_id_no</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
<TABLE_INDEX><TABLE_NAME>paramed</TABLE_NAME><index_name>ix_paramed_pol_pers</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>policy_person_id</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>person</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>person</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>person</TABLE_NAME>
    <Column_Name>last_name</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>250</Length>
    <Prec>250</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>person</TABLE_NAME>
    <Column_Name>first_name</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>100</Length>
    <Prec>100</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>person</TABLE_NAME>
    <Column_Name>middle_name</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>100</Length>
    <Prec>100</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>person</TABLE_NAME>
    <Column_Name>tax_id</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>person</TABLE_NAME>
    <Column_Name>birth_date</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
<DropAdd_Indexes Action="ReAdd"><TABLE_NAME>person</TABLE_NAME><index_name>IX_person_last_name</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>last_name</index_keys></DropAdd_Indexes><DropAdd_Indexes Action="ReAdd"><TABLE_NAME>person</TABLE_NAME><index_name>ix_person_dob</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>birth_date</index_keys></DropAdd_Indexes><DropAdd_Indexes Action="ReAdd"><TABLE_NAME>person</TABLE_NAME><index_name>ix_tax_id</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>tax_id</index_keys></DropAdd_Indexes><TABLE_REFERENCE><TABLE_NAME>person</TABLE_NAME><PK_Table>person</PK_Table><FK_Table>coverage_benefits_party</FK_Table><Constraint>FK_cov_ben_pers_id</Constraint><cKeyCol1>person_id</cKeyCol1><cRefCol1>person_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_REFERENCE><TABLE_REFERENCE><TABLE_NAME>person</TABLE_NAME><PK_Table>person</PK_Table><FK_Table>coverage_person_insured</FK_Table><Constraint>FK_cov_ppo_id</Constraint><cKeyCol1>ppo_id</cKeyCol1><cRefCol1>person_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_REFERENCE><TABLE_REFERENCE><TABLE_NAME>person</TABLE_NAME><PK_Table>person</PK_Table><FK_Table>employer_plan</FK_Table><Constraint>FK_EMPLOYER_PERSON</Constraint><cKeyCol1>employer_id</cKeyCol1><cRefCol1>person_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_REFERENCE><TABLE_INDEX><TABLE_NAME>person</TABLE_NAME><index_name>_dta_index_person_16_173959696__K1_3_4_5_7_8_9_11_17</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>person_id</index_keys></TABLE_INDEX><TABLE_INDEX><TABLE_NAME>person</TABLE_NAME><index_name>ix_party_id</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>party_id</index_keys></TABLE_INDEX><TABLE_INDEX><TABLE_NAME>person</TABLE_NAME><index_name>ix_party_search</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>person_id</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>person_address</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>person_address</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>person_address</TABLE_NAME>
    <Column_Name>address_sequence_id</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>10</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
</TABLE><TABLE Action="Alter"><TABLE_NAME>policy</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>policy</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>policy</TABLE_NAME>
    <Column_Name>bank_rounting_number</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>policy</TABLE_NAME>
    <Column_Name>bank_account_number</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>policy</TABLE_NAME>
    <Column_Name>credit_card_number</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>policy</TABLE_NAME>
    <Column_Name>credit_card_expiration_year</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>policy</TABLE_NAME>
    <Column_Name>credit_card_expiration_month</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>policy</TABLE_NAME>
    <Column_Name>ppo_network</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>100</Length>
    <Prec>100</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>policy</TABLE_NAME>
    <Column_Name>employer_id</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>policy</TABLE_NAME>
    <Column_Name>group_indicator</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>policy</TABLE_NAME>
    <Column_Name>product_type</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>10</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>policy</TABLE_NAME>
    <Column_Name>trust_code</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>10</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>policy</TABLE_NAME>
    <Column_Name>case_clock_flag</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>policy</TABLE_NAME>
    <Column_Name>tia_indicator</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>policy</TABLE_NAME>
    <Column_Name>bank_transaction_number</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>10</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>policy</TABLE_NAME>
    <Column_Name>bank_name_on_account</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>255</Length>
    <Prec>255</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>policy</TABLE_NAME>
    <Column_Name>sales_director_code</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>10</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>policy</TABLE_NAME>
    <Column_Name>sales_director_name</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>255</Length>
    <Prec>255</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>policy</TABLE_NAME>
    <Column_Name>bank_trans_num_is_valid_flag</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>policy</TABLE_NAME>
    <Column_Name>bank_routing_num_is_valid_flag</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>policy</TABLE_NAME>
    <Column_Name>marketing_key_is_valid_flag</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>policy</TABLE_NAME>
    <Column_Name>cond_receipt_number</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>10</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>policy</TABLE_NAME>
    <Column_Name>trial_application_flag</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>policy</TABLE_NAME>
    <Column_Name>bank_account_sequence_id</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>10</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>policy</TABLE_NAME>
    <Column_Name>application_source_type</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>20</Length>
    <Prec>20</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
<TABLE_ORIG_REFERENCE><TABLE_NAME>policy</TABLE_NAME><PK_Table>company</PK_Table><FK_Table>policy</FK_Table><Constraint>FK_POLICY_REF_17415_COMPANY</Constraint><cKeyCol1>company_code</cKeyCol1><cRefCol1>company_code</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_ORIG_REFERENCE><TABLE_INDEX><TABLE_NAME>policy</TABLE_NAME><index_name>_dta_index_policy_16_1197963344__K1_K6_K49_K7_K59_2_3_4_8_10_11_12_28_32_48_50_51_58_61_62_63_64_65_66</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>policy_id, underwriter_id, service_associate_id, team_id, cedent_company_code</index_keys></TABLE_INDEX><TABLE_INDEX><TABLE_NAME>policy</TABLE_NAME><index_name>ix_pol_case_grp</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>case_group_id</index_keys></TABLE_INDEX><TABLE_INDEX><TABLE_NAME>policy</TABLE_NAME><index_name>ix_pol_sa_id</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>service_associate_id</index_keys></TABLE_INDEX><TABLE_INDEX><TABLE_NAME>policy</TABLE_NAME><index_name>ix_pol_stat_user</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>policy_status_code, underwriter_id, service_associate_id</index_keys></TABLE_INDEX><TABLE_INDEX><TABLE_NAME>policy</TABLE_NAME><index_name>ix_policy_receive_date</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>receive_date</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>policy_coverage</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>policy_coverage</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE /><TABLE_INDEX><TABLE_NAME>policy_coverage</TABLE_NAME><index_name>_dta_index_policy_coverage_16_1229963458__K1_3</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>policy_coverage_id</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>policy_log</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>policy_log</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE /><TABLE_INDEX><TABLE_NAME>policy_log</TABLE_NAME><index_name>ix_policy_log</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>policy_id</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>policy_person</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>policy_person</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>policy_person</TABLE_NAME>
    <Column_Name>sub_role_id</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>20</Length>
    <Prec>20</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
<TABLE_REFERENCE><TABLE_NAME>policy_person</TABLE_NAME><PK_Table>policy_person</PK_Table><FK_Table>policy_person_insured</FK_Table><Constraint>FK_PRIMARY_REFERENCE_ID</Constraint><cKeyCol1>primary_reference_id</cKeyCol1><cRefCol1>policy_person_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_REFERENCE><TABLE_INDEX><TABLE_NAME>policy_person</TABLE_NAME><index_name>_dta_index_policy_person_16_1261963572__K3_K2_K1_5</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>person_id, policy_id, policy_person_id</index_keys></TABLE_INDEX><TABLE_INDEX><TABLE_NAME>policy_person</TABLE_NAME><index_name>ix_pol_pers_comp</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>policy_person_id, policy_id, person_id</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>policy_person_insured</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>policy_person_insured</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>policy_person_insured</TABLE_NAME>
    <Column_Name>signed_country_id</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>30</Length>
    <Prec>30</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>policy_person_insured</TABLE_NAME>
    <Column_Name>primary_reference_id</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>policy_person_insured</TABLE_NAME>
    <Column_Name>medical_coverage_indicator</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>policy_person_insured</TABLE_NAME>
    <Column_Name>dental_coverage_indicator</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>policy_person_insured</TABLE_NAME>
    <Column_Name>vision_coverage_indicator</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Drop</Action>
    <TABLE_NAME>policy_person_insured</TABLE_NAME>
    <Column_Name>issue_age</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
<TABLE_REFERENCE><TABLE_NAME>policy_person_insured</TABLE_NAME><PK_Table>policy_person</PK_Table><FK_Table>policy_person_insured</FK_Table><Constraint>FK_PRIMARY_REFERENCE_ID</Constraint><cKeyCol1>primary_reference_id</cKeyCol1><cRefCol1>policy_person_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_REFERENCE><TABLE_INDEX><TABLE_NAME>policy_person_insured</TABLE_NAME><index_name>_dta_index_policy_person_insured_16_1293963686__K1_K8_3_9_10_12_18</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>policy_person_id, applicant_status</index_keys></TABLE_INDEX><TABLE_INDEX><TABLE_NAME>policy_person_insured</TABLE_NAME><index_name>ix_pol_pers_ins_stat</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>applicant_status</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>policy_person_retro_info</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>policy_person_retro_info</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE /><TABLE_ORIG_REFERENCE><TABLE_NAME>policy_person_retro_info</TABLE_NAME><PK_Table>company</PK_Table><FK_Table>policy_person_retro_info</FK_Table><Constraint>FK_pp_retro_info_company</Constraint><cKeyCol1>company_code</cKeyCol1><cRefCol1>company_code</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_ORIG_REFERENCE><TABLE_INDEX><TABLE_NAME>policy_person_retro_info</TABLE_NAME><index_name>ix_retro_pol_pers</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>policy_person_id</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>provider_order</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>provider_order</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE /><TABLE_INDEX><TABLE_NAME>provider_order</TABLE_NAME><index_name>ix_tracking_number</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>tracking_number</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>reinsurance_vendor</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>reinsurance_vendor</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE /><TABLE_ORIG_INDEX><TABLE_NAME>reinsurance_vendor</TABLE_NAME><index_name>PK_REINSURANCE_VENDOR</index_name><index_description>clustered, unique, primary key located on PRIMARY</index_description><index_keys>reinsurance_vendor_code</index_keys></TABLE_ORIG_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>related_policies</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>related_policies</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>related_policies</TABLE_NAME>
    <Column_Name>decision</Column_Name>
    <Type>numeric</Type>
    <Base_Type>numeric</Base_Type>
    <Length>9</Length>
    <Prec>12</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>related_policies</TABLE_NAME>
    <Column_Name>bill_status</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>5</Length>
    <Prec>5</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>related_policies</TABLE_NAME>
    <Column_Name>reinsurance_amount</Column_Name>
    <Type>numeric</Type>
    <Base_Type>numeric</Base_Type>
    <Length>9</Length>
    <Prec>12</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>related_policies</TABLE_NAME>
    <Column_Name>reinsurance_type</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>5</Length>
    <Prec>5</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>related_policies</TABLE_NAME>
    <Column_Name>person_id</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>related_policies</TABLE_NAME>
    <Column_Name>product_name</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>100</Length>
    <Prec>100</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>related_policies</TABLE_NAME>
    <Column_Name>rate_class</Column_Name>
    <Type>varchar</Type>
    <Base_Type>varchar</Base_Type>
    <Length>50</Length>
    <Prec>50</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>related_policies</TABLE_NAME>
    <Column_Name>table_rating</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>20</Length>
    <Prec>20</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>related_policies</TABLE_NAME>
    <Column_Name>flat_extra_amount</Column_Name>
    <Type>numeric</Type>
    <Base_Type>numeric</Base_Type>
    <Length>5</Length>
    <Prec>5</Prec>
    <Scale>2</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>related_policies</TABLE_NAME>
    <Column_Name>flat_extra_period</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
</TABLE><TABLE Action="Alter"><TABLE_NAME>requirement_information</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>requirement_information</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE /><TABLE_INDEX><TABLE_NAME>requirement_information</TABLE_NAME><index_name>ix_req_inf_ins_req</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>insured_requirement_id</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>review_message</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>review_message</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE /><TABLE_INDEX><TABLE_NAME>review_message</TABLE_NAME><index_name>ix_rvw_msg_type</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>message_type, user_role_type</index_keys></TABLE_INDEX><TABLE_INDEX><TABLE_NAME>review_message</TABLE_NAME><index_name>ix_rvw_msg_user_role</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>user_role_type</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>te_rulebook</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>te_rulebook</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>te_rulebook</TABLE_NAME>
    <Column_Name>rulebook_name</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>20</Length>
    <Prec>20</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>0</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
<TABLE_INDEX><TABLE_NAME>te_rulebook</TABLE_NAME><index_name>ix_rulebook_type_effdate</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>effective_date, type</index_keys></TABLE_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>tl_applicant_status</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>tl_applicant_status</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE /><TABLE_ORIG_INDEX><TABLE_NAME>tl_applicant_status</TABLE_NAME><index_name>PK_tl_applicant_status</index_name><index_description>clustered, unique, primary key located on PRIMARY</index_description><index_keys>applicant_status_code</index_keys></TABLE_ORIG_INDEX></TABLE><TABLE Action="Alter"><TABLE_NAME>tl_code</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>tl_code</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>tl_code</TABLE_NAME>
    <Column_Name>language_code</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>10</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>0</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value>('en-us')</Default_Orig_Value>
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>tl_code</TABLE_NAME>
    <Column_Name>external_code</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>100</Length>
    <Prec>100</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
<DropAdd_Indexes Action="ReAdd"><TABLE_NAME>tl_code</TABLE_NAME><index_name>pk_code_valuelist</index_name><index_description>clustered, unique, primary key located on PRIMARY</index_description><index_keys>language_code, code_type, code_id</index_keys></DropAdd_Indexes><TABLE_ORIG_CONSTRAINTS><TABLE_NAME>tl_code</TABLE_NAME><CONSTRAINT_OWNER>dbo</CONSTRAINT_OWNER><CONSTRAINT_NAME>DF__tl_code__languag__0D64F3ED</CONSTRAINT_NAME><COLUMN_NAME>language_code</COLUMN_NAME><CONSTRAINT_CLAUSE>('en-us')</CONSTRAINT_CLAUSE><CONSTRAINT_TYPE>D </CONSTRAINT_TYPE></TABLE_ORIG_CONSTRAINTS></TABLE><TABLE Action="Alter"><TABLE_NAME>tl_country</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>tl_country</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>tl_country</TABLE_NAME>
    <Column_Name>country_id</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>30</Length>
    <Prec>30</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>0</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
<DropAdd_References Action="ReAdd"><TABLE_NAME>tl_country</TABLE_NAME><PK_Table>tl_country</PK_Table><FK_Table>tl_country_state</FK_Table><Constraint>FK_TL_COUNT_REF_9601_TL_COUNT</Constraint><cKeyCol1>country_id</cKeyCol1><cRefCol1>country_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></DropAdd_References><DropAdd_References Action="ReAdd"><TABLE_NAME>tl_country</TABLE_NAME><PK_Table>tl_country</PK_Table><FK_Table>insured_application_info</FK_Table><Constraint>FK_form_REFERENCE_TL_COUNT</Constraint><cKeyCol1>citizenship_country_id</cKeyCol1><cRefCol1>country_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></DropAdd_References><DropAdd_References Action="ReAdd"><TABLE_NAME>tl_country</TABLE_NAME><PK_Table>tl_country</PK_Table><FK_Table>insured_application_info</FK_Table><Constraint>FK_form_REF_14466_TL_COUNT</Constraint><cKeyCol1>drivers_license_country_id</cKeyCol1><cRefCol1>country_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></DropAdd_References><DropAdd_References Action="ReAdd"><TABLE_NAME>tl_country</TABLE_NAME><PK_Table>tl_country</PK_Table><FK_Table>insured_application_info</FK_Table><Constraint>fk_form_ref_1059_tl_count</Constraint><cKeyCol1>birth_country</cKeyCol1><cRefCol1>country_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></DropAdd_References><DropAdd_Indexes Action="ReAdd"><TABLE_NAME>tl_country</TABLE_NAME><index_name>PK_TL_COUNTRY</index_name><index_description>clustered, unique, primary key located on PRIMARY</index_description><index_keys>country_id</index_keys></DropAdd_Indexes><DropAdd_References Action="ReAdd"><TABLE_NAME>tl_country</TABLE_NAME><PK_Table>tl_country</PK_Table><FK_Table>insured_application_info</FK_Table><Constraint>fk_form_ref_1047_tl_count</Constraint><cKeyCol1>residence_country</cKeyCol1><cRefCol1>country_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></DropAdd_References><DropAdd_References Action="ReAdd"><TABLE_NAME>tl_country</TABLE_NAME><PK_Table>tl_country</PK_Table><FK_Table>policy_person_insured</FK_Table><Constraint>FK_ppi_sci_REF_TL_COUNT</Constraint><cKeyCol1>signed_country_id</cKeyCol1><cRefCol1>country_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></DropAdd_References></TABLE><TABLE Action="Alter"><TABLE_NAME>tl_country_state</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>tl_country_state</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>tl_country_state</TABLE_NAME>
    <Column_Name>country_id</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>30</Length>
    <Prec>30</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>0</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
<DropAdd_References Action="ReAdd"><TABLE_NAME>tl_country_state</TABLE_NAME><PK_Table>tl_country</PK_Table><FK_Table>tl_country_state</FK_Table><Constraint>FK_TL_COUNT_REF_9601_TL_COUNT</Constraint><cKeyCol1>country_id</cKeyCol1><cRefCol1>country_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></DropAdd_References></TABLE><TABLE Action="Alter"><TABLE_NAME>tl_final_action_reason</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>tl_final_action_reason</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>tl_final_action_reason</TABLE_NAME>
    <Column_Name>reason_status</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>20</Length>
    <Prec>20</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>0</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
</TABLE><TABLE Action="Alter"><TABLE_NAME>tl_plan_code</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>tl_plan_code</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>tl_plan_code</TABLE_NAME>
    <Column_Name>code_prefix</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>5</Length>
    <Prec>5</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
<TABLE_REFERENCE><TABLE_NAME>tl_plan_code</TABLE_NAME><PK_Table>tl_plan_code</PK_Table><FK_Table>tl_plan_option</FK_Table><Constraint>FK_TL_PLAN_OPTION_PLAN_CODE</Constraint><cKeyCol1>plan_code_id</cKeyCol1><cRefCol1>plan_code_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_REFERENCE><TABLE_REFERENCE><TABLE_NAME>tl_plan_code</TABLE_NAME><PK_Table>tl_plan_code</PK_Table><FK_Table>employer_plan</FK_Table><Constraint>FK_EMPLOYER_PLAN_CODE</Constraint><cKeyCol1>plan_code</cKeyCol1><cRefCol1>plan_code_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_REFERENCE></TABLE><TABLE Action="Add"><TABLE_NAME>tl_plan_option</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>TABLE</TABLE_TYPE><COLUMN><TABLE_NAME>tl_plan_option</TABLE_NAME><Column_Name>language_code</Column_Name><Type>char</Type><Base_Type>char</Base_Type><Length>10</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>tl_plan_option</TABLE_NAME><Column_Name>option_type</Column_Name><Type>char</Type><Base_Type>char</Base_Type><Length>20</Length><Prec>20</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>tl_plan_option</TABLE_NAME><Column_Name>plan_code_id</Column_Name><Type>char</Type><Base_Type>char</Base_Type><Length>10</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>tl_plan_option</TABLE_NAME><Column_Name>sequence_number</Column_Name><Type>int</Type><Base_Type>int</Base_Type><Length>4</Length><Prec>10</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>0</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>0</AnsiPad><Collation></Collation><Calc_Text></Calc_Text></COLUMN><COLUMN><TABLE_NAME>tl_plan_option</TABLE_NAME><Column_Name>description</Column_Name><Type>varchar</Type><Base_Type>varchar</Base_Type><Length>50</Length><Prec>50</Prec><Scale>0</Scale><Seed>0</Seed><Increment>0</Increment><isNullable>1</isNullable><isIdentity>0</isIdentity><isComputed>0</isComputed><isRowGuidCol>0</isRowGuidCol><Default_Constraint></Default_Constraint><Default_Name></Default_Name><Rule_Name></Rule_Name><Default_Owner></Default_Owner><Default_Value></Default_Value><Rule_Owner></Rule_Owner><NotforRepl>0</NotforRepl><FullText>0</FullText><AnsiPad>1</AnsiPad><Collation>SQL_Latin1_General_CP1_CI_AS</Collation><Calc_Text></Calc_Text></COLUMN><TABLE_FILEGROUP><TABLE_NAME>tl_plan_option</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE><TABLE_NAME>tl_plan_option</TABLE_NAME><PK_Table>tl_plan_code</PK_Table><FK_Table>tl_plan_option</FK_Table><Constraint>FK_TL_PLAN_OPTION_PLAN_CODE</Constraint><cKeyCol1>plan_code_id</cKeyCol1><cRefCol1>plan_code_id</cRefCol1><PK_Table_Owner>dbo</PK_Table_Owner><FK_Table_Owner>dbo</FK_Table_Owner><DeleteCascade>0</DeleteCascade><UpdateCascade>0</UpdateCascade></TABLE_REFERENCE><TABLE_INDEX><TABLE_NAME>tl_plan_option</TABLE_NAME><index_name>PK_tl_plan_option</index_name><index_description>clustered, unique, primary key located on PRIMARY</index_description><index_keys>language_code, option_type, plan_code_id, sequence_number</index_keys></TABLE_INDEX><TABLE_CONSTRAINTS><TABLE_NAME>tl_plan_option</TABLE_NAME></TABLE_CONSTRAINTS></TABLE><TABLE Action="Alter"><TABLE_NAME>tl_requirement</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>tl_requirement</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>tl_requirement</TABLE_NAME>
    <Column_Name>notify_cm_when_received</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
  <COLUMN>
    <Action>Add</Action>
    <TABLE_NAME>tl_requirement</TABLE_NAME>
    <Column_Name>notify_cm_when_satisfied</Column_Name>
    <Type>int</Type>
    <Base_Type>int</Base_Type>
    <Length>4</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>1</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Default_Owner />
    <Default_Value />
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>0</AnsiPad>
    <Collation />
    <Calc_Text />
  </COLUMN>
</TABLE><TABLE Action="Alter"><TABLE_NAME>tpa</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>tpa</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE />
  <COLUMN>
    <Action>Alter</Action>
    <TABLE_NAME>tpa</TABLE_NAME>
    <Column_Name>tpa_short_name</Column_Name>
    <Type>char</Type>
    <Base_Type>char</Base_Type>
    <Length>10</Length>
    <Prec>10</Prec>
    <Scale>0</Scale>
    <Seed>0</Seed>
    <Increment>0</Increment>
    <isNullable>0</isNullable>
    <isIdentity>0</isIdentity>
    <isComputed>0</isComputed>
    <Default_Orig_Name />
    <Default_Name />
    <Rule_Name />
    <Rule_Owner />
    <Rule_Orig_Name />
    <Rule_Orig_Owner />
    <Default_Owner />
    <Default_Value />
    <Default_Orig_Value>('')</Default_Orig_Value>
    <NotforRepl>0</NotforRepl>
    <isRowGuidCol>0</isRowGuidCol>
    <ORIG_RowGuidCol>0</ORIG_RowGuidCol>
    <FullText>0</FullText>
    <AnsiPad>1</AnsiPad>
    <Collation>SQL_Latin1_General_CP1_CI_AS</Collation>
    <Calc_Text />
  </COLUMN>
<DropAdd_Indexes Action="ReAdd"><TABLE_NAME>tpa</TABLE_NAME><index_name>IX_tpa_acronym</index_name><index_description>nonclustered, unique located on PRIMARY</index_description><index_keys>tpa_short_name</index_keys></DropAdd_Indexes><TABLE_INDEX><TABLE_NAME>tpa</TABLE_NAME><index_name>ix_tpa_party</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>person_id</index_keys></TABLE_INDEX><TABLE_ORIG_CONSTRAINTS><TABLE_NAME>tpa</TABLE_NAME><CONSTRAINT_OWNER>dbo</CONSTRAINT_OWNER><CONSTRAINT_NAME>DF__tpa__tpa_short_n__0E591826</CONSTRAINT_NAME><COLUMN_NAME>tpa_short_name</COLUMN_NAME><CONSTRAINT_CLAUSE>('')</CONSTRAINT_CLAUSE><CONSTRAINT_TYPE>D </CONSTRAINT_TYPE></TABLE_ORIG_CONSTRAINTS></TABLE><TABLE Action="Alter"><TABLE_NAME>tr_plan_code_rulebook</TABLE_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_FILEGROUP><TABLE_NAME>tr_plan_code_rulebook</TABLE_NAME><groupname>PRIMARY</groupname></TABLE_FILEGROUP><TABLE_REFERENCE /><TABLE_CONSTRAINTS /><TABLE_ORIG_CONSTRAINTS /><TABLE_ORIG_REFERENCE /><TABLE_INDEX><TABLE_NAME>tr_plan_code_rulebook</TABLE_NAME><index_name>ix_plan_code_rulebook</index_name><index_description>nonclustered located on PRIMARY</index_description><index_keys>plan_code_id, rulebook_id</index_keys></TABLE_INDEX></TABLE><VIEW Action="Alter"><VIEW_NAME>agency_proxy_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-696667231</Check_Sum><CREATE_TEXT><VIEW_NAME>agency_proxy_view</VIEW_NAME><Text>create view [dbo].[agency_proxy_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_proxy_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_proxy_view</VIEW_NAME><Text>	person.*,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_proxy_view</VIEW_NAME><Text>	agency.agency_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_proxy_view</VIEW_NAME><Text>	agency.routing_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_proxy_view</VIEW_NAME><Text>	agency.update_date
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_proxy_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_proxy_view</VIEW_NAME><Text>	person,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_proxy_view</VIEW_NAME><Text>	agency
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_proxy_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_proxy_view</VIEW_NAME><Text>	person.person_id = agency.person_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>agency_proxy_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>agency_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>396657519</Check_Sum><CREATE_TEXT><VIEW_NAME>agency_view</VIEW_NAME><Text>create view [dbo].[agency_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_view</VIEW_NAME><Text>policy_person.policy_person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_view</VIEW_NAME><Text>policy_person.policy_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_view</VIEW_NAME><Text>policy_person.role_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_view</VIEW_NAME><Text>policy_person.sub_role_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_view</VIEW_NAME><Text>agency.agency_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_view</VIEW_NAME><Text>agency.routing_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_view</VIEW_NAME><Text>agency.update_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_view</VIEW_NAME><Text>person.*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_view</VIEW_NAME><Text>agency,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_view</VIEW_NAME><Text>person,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_view</VIEW_NAME><Text>policy_person
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_view</VIEW_NAME><Text>WHERE
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_view</VIEW_NAME><Text>policy_person.role_id = 'agency' and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_view</VIEW_NAME><Text>policy_person.person_id = person.person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agency_view</VIEW_NAME><Text>person.person_id = agency.person_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>agency_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-1609776435</Check_Sum><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>create view [dbo].[agent_policy_proxy_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	pa.agent_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	p.policy_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	p.team_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	p.policy_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	p.policy_status_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	p.policy_status_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	p.company_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	p.priority,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	p.underwriter_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	(select login_id from aus_user where user_id = p.underwriter_id) as underwriter_login_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	p.case_group_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	p.service_associate_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	(select login_id from aus_user where user_id = p.service_associate_id) as service_associate_login_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	p.alternate_case_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	(select top 1 pc.plan_code_id from policy_coverage pc, coverage_person cp where pc.policy_coverage_id = cp.policy_coverage_id and cp.person_id = pp.person_id) as primary_plan_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	ppi.policy_person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	ppi.applicant_status as applicant_status_short,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	ppi.applicant_status_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	ppi.underwriting_amount as insured_underwriting_amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	i.last_name as insured_last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	i.middle_name as insured_middle_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	i.first_name as insured_first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	i.tax_id as insured_tax_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	i.client_id as insured_client_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	ppi.primary_insured_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	p.receive_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	p.added_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	p.application_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	p.source_info,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	p.distributor_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	policy p,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	policy_person pp,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	policy_person_insured ppi,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	policy_person_agent pa,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	policy_person ppa,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	person i
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	pa.policy_person_id = ppa.policy_person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	ppa.policy_id = p.policy_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	p.policy_id = pp.policy_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	pp.policy_person_id = ppi.policy_person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	pp.person_id = i.person_id and 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME><Text>	pa.agent_number is not null
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>agent_policy_proxy_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>agent_proxy_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>560504409</Check_Sum><CREATE_TEXT><VIEW_NAME>agent_proxy_view</VIEW_NAME><Text>create view [dbo].[agent_proxy_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_proxy_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_proxy_view</VIEW_NAME><Text>	person.*,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_proxy_view</VIEW_NAME><Text>	agent.agent_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_proxy_view</VIEW_NAME><Text>	agent.routing_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_proxy_view</VIEW_NAME><Text>	agent.company_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_proxy_view</VIEW_NAME><Text>	agent.descriptor
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_proxy_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_proxy_view</VIEW_NAME><Text>	person,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_proxy_view</VIEW_NAME><Text>	agent
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_proxy_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_proxy_view</VIEW_NAME><Text>	person.person_id = agent.person_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>agent_proxy_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>agent_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-1022414859</Check_Sum><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>create view [dbo].[agent_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>person.*,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>agent.agent_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>agent.routing_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>agent.company_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>policy_person_agent.policy_person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>policy_person_agent.agency_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>policy_person_agent.commission_split,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>policy_person_agent.commission_option,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>policy_person_agent.market_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>policy_person_agent.firm_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>policy_person_agent.level5_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>policy_person.policy_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>policy_person.role_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>policy_person.sub_role_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>person,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>agent,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>policy_person_agent,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>policy_person
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>policy_person_agent.policy_person_id = policy_person.policy_person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>(policy_person.role_id like 'agent%' or policy_person.role_id like 'Agent%') and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>policy_person.person_id = person.person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>agent_view</VIEW_NAME><Text>policy_person.person_id = agent.person_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>agent_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>application_info_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-1256615464</Check_Sum><CREATE_TEXT><VIEW_NAME>application_info_view</VIEW_NAME><Text>create view [dbo].[application_info_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>application_info_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>application_info_view</VIEW_NAME><Text>ri.create_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>application_info_view</VIEW_NAME><Text>ri.match_method,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>application_info_view</VIEW_NAME><Text>ri.status,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>application_info_view</VIEW_NAME><Text>ri.vendor_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>application_info_view</VIEW_NAME><Text>ri.manual_or_electronic_entry,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>application_info_view</VIEW_NAME><Text>ri.expiration_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>application_info_view</VIEW_NAME><Text>ri.requirement_type_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>application_info_view</VIEW_NAME><Text>ri.requirement_request_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>application_info_view</VIEW_NAME><Text>ri.lifespan_days,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>application_info_view</VIEW_NAME><Text>ri.insured_requirement_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>application_info_view</VIEW_NAME><Text>ai.*,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>application_info_view</VIEW_NAME><Text>'' as last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>application_info_view</VIEW_NAME><Text>'' as middle_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>application_info_view</VIEW_NAME><Text>'' as first_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>application_info_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>application_info_view</VIEW_NAME><Text>requirement_information ri, insured_application_info ai
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>application_info_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>application_info_view</VIEW_NAME><Text>ri.requirement_information_id = ai.requirement_information_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>application_info_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>association_plan_proxy_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>1443283088</Check_Sum><CREATE_TEXT><VIEW_NAME>association_plan_proxy_view</VIEW_NAME><Text>create view [dbo].[association_plan_proxy_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>association_plan_proxy_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>association_plan_proxy_view</VIEW_NAME><Text>	ap.association_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>association_plan_proxy_view</VIEW_NAME><Text>	ap.plan_code_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>association_plan_proxy_view</VIEW_NAME><Text>	tpa_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>association_plan_proxy_view</VIEW_NAME><Text>	g_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>association_plan_proxy_view</VIEW_NAME><Text>	pc.line_of_business_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>association_plan_proxy_view</VIEW_NAME><Text>	mortality_max,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>association_plan_proxy_view</VIEW_NAME><Text>	billing_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>association_plan_proxy_view</VIEW_NAME><Text>	expiration_date
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>association_plan_proxy_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>association_plan_proxy_view</VIEW_NAME><Text>	association_plan ap,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>association_plan_proxy_view</VIEW_NAME><Text>	tl_plan_code pc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>association_plan_proxy_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>association_plan_proxy_view</VIEW_NAME><Text>	pc.plan_code_id = ap.plan_code_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>association_plan_proxy_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>aus_user_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>947516873</Check_Sum><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>create view [dbo].[aus_user_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	person.*,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	au.user_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	au.login_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	au.password,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	au.is_active,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	au.level_of_authority,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	au.is_underwriter,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	au.restrict_to_teams,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	au.role_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	au.is_service_associate,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	au.job_title,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	au.account_locked,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	au.account_locked_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	au.bad_login_attempt_count,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	au.last_bad_login_attempt_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	au.must_change_password,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	au.last_password_change_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	au.is_agent,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	au.agent_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	au.is_agency,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	au.agency_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	au.deleted,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	au.use_single_sign_on
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	person,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	aus_user au
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>aus_user_view</VIEW_NAME><Text>	au.person_id = person.person_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>aus_user_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>automation_event_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-1612502045</Check_Sum><CREATE_TEXT><VIEW_NAME>automation_event_view</VIEW_NAME><Text>create view [dbo].[automation_event_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>automation_event_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>automation_event_view</VIEW_NAME><Text>	*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>automation_event_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>automation_event_view</VIEW_NAME><Text>	aus_event
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>automation_event_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>automation_event_view</VIEW_NAME><Text>	aus_cmd &gt;= 1100 and aus_cmd &lt; 1200
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>automation_event_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>benefit_party_dob_operand_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-1835627892</Check_Sum><CREATE_TEXT><VIEW_NAME>benefit_party_dob_operand_view</VIEW_NAME><Text>create view [dbo].[benefit_party_dob_operand_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_party_dob_operand_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_party_dob_operand_view</VIEW_NAME><Text>	'getBenefitMaxPartyDOB(' + rtrim(name) + ')' as name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_party_dob_operand_view</VIEW_NAME><Text>	'date' as type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_party_dob_operand_view</VIEW_NAME><Text>	'Benefit ' + rtrim(name) + ' Max Party DOB' as display,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_party_dob_operand_view</VIEW_NAME><Text>	'The birthdate of the youngest party on the ' + rtrim(name) + ' Benefit.'  as description,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_party_dob_operand_view</VIEW_NAME><Text>	'' as value_list
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_party_dob_operand_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_party_dob_operand_view</VIEW_NAME><Text>	tl_benefit_type
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_party_dob_operand_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_party_dob_operand_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_party_dob_operand_view</VIEW_NAME><Text>	'getBenefitMinPartyDOB(' + rtrim(name) + ')' as name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_party_dob_operand_view</VIEW_NAME><Text>	'date' as type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_party_dob_operand_view</VIEW_NAME><Text>	'Benefit ' + rtrim(name) + ' Min Party DOB' as display,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_party_dob_operand_view</VIEW_NAME><Text>	'The birthdate of the oldest party on the ' + rtrim(name) + ' Benefit.'  as description,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_party_dob_operand_view</VIEW_NAME><Text>	'' as value_list
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_party_dob_operand_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_party_dob_operand_view</VIEW_NAME><Text>	tl_benefit_type
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>benefit_party_dob_operand_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>case_event_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-722458996</Check_Sum><CREATE_TEXT><VIEW_NAME>case_event_view</VIEW_NAME><Text>create view [dbo].[case_event_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>case_event_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>case_event_view</VIEW_NAME><Text>	*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>case_event_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>case_event_view</VIEW_NAME><Text>	aus_event
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>case_event_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>case_event_view</VIEW_NAME><Text>	aus_cmd &gt;= 100 and aus_cmd &lt; 1000
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>case_event_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Add"><VIEW_NAME>codes_view2</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-706015081</Check_Sum><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>-- create codes_view2 with new union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>CREATE VIEW [dbo].[codes_view2] AS
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>select distinct 'en-us' as language_code, 'ppo_trust_state_' + lower(rtrim(t.company_code)) + '_' + lower(rtrim(pa.country_state_id)) as code_type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>cast(p.person_id as char(30)) as code_id, p.last_name as code_value, cast(c.expiration_date as char(30)) as external_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>from company c, person p, person_address pa, party_relation pr, company t where p.person_id = c.person_id and p.class_type = 'PPO' and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>pa.person_id = p.person_id and pr.parent_id = p.person_id and t.person_id = pr.person_id and c.expiration_date = (select min(expiration_date)
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>from company, person_address where company_code = c.company_code and company.person_id = person_address.person_id and person_address.country_state_id = pa.country_state_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>and expiration_date &gt; CURRENT_TIMESTAMP)
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>select distinct 'en-us' as language_code, 'trust_state_' + lower(rtrim(c.company_code)) as code_type, pa.country_state_id as code_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>(select state_name from tl_country_state where country_state_id = pa.country_state_id) as code_value, '' as external_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>from company c, person p, person_address pa, party_relation pr,company ppo where p.person_id = c.person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>p.class_type = 'Trust' and pr.person_id = p.person_id and ppo.person_id = pr.parent_id and pa.person_id = ppo.person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>ppo.expiration_date &gt; CURRENT_TIMESTAMP
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>select distinct 'en-us' as language_code, ('plan_gnum_' + SUBSTRING(ap.g_number,1,6) + '_' + SUBSTRING(ap.g_number,8,4)  + '_' + SUBSTRING(ap.g_number,13,4)) as code_type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>ap.plan_code_id as code_id, pc.description as code_value, pc.line_of_business_code as external_code from association_plan ap, tl_plan_code pc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>where len(ap.g_number) &gt;= 16 and ap.plan_code_id = pc.plan_code_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>UNION
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>SELECT DISTINCT
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>'en-us' AS language_code, 'case_request_nbr' AS code_type, plan_code_id AS code_id, code_prefix AS code_value, '' AS external_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>FROM     tl_plan_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>UNION
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>select 'en-us' as language_code, 'agent_number' as code_type, agent.agent_number as code_id, rtrim(agent.agent_number) as code_value, '' as external_code from agent, person where person.person_id = agent.person_id and person.last_name is null
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>select 'en-us' as language_code, 'agent_number' as code_type, agent.agent_number as code_id, rtrim(agent.agent_number) + ' - ' + rtrim(person.last_name) as code_value, '' as external_code from agent, person where person.person_id = agent.person_id and per</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view2</VIEW_NAME><Text>son.last_name is not null
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>codes_view2</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>company_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-468840118</Check_Sum><CREATE_TEXT><VIEW_NAME>company_view</VIEW_NAME><Text>create view [dbo].[company_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>company_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>company_view</VIEW_NAME><Text>	person.*,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>company_view</VIEW_NAME><Text>	company.company_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>company_view</VIEW_NAME><Text>	company.allow_aus_approval_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>company_view</VIEW_NAME><Text>	company.correspondence_directory,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>company_view</VIEW_NAME><Text>	company.full_time_employee_count,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>company_view</VIEW_NAME><Text>	company.percent_eligible_employees,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>company_view</VIEW_NAME><Text>	company.percent_eligible_dependants,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>company_view</VIEW_NAME><Text>	company.current_cobra_indicator,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>company_view</VIEW_NAME><Text>	company.expiration_date
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>company_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>company_view</VIEW_NAME><Text>	person,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>company_view</VIEW_NAME><Text>	company
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>company_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>company_view</VIEW_NAME><Text>	company.person_id = person.person_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>company_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>correspondence_event_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>1292233391</Check_Sum><CREATE_TEXT><VIEW_NAME>correspondence_event_view</VIEW_NAME><Text>create view [dbo].[correspondence_event_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>correspondence_event_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>correspondence_event_view</VIEW_NAME><Text>	*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>correspondence_event_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>correspondence_event_view</VIEW_NAME><Text>	aus_event
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>correspondence_event_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>correspondence_event_view</VIEW_NAME><Text>	aus_cmd &gt;= 1000 and aus_cmd &lt; 1100
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>correspondence_event_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>coverage_benefits_party_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>1805529907</Check_Sum><CREATE_TEXT><VIEW_NAME>coverage_benefits_party_view</VIEW_NAME><Text>create view [dbo].[coverage_benefits_party_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>coverage_benefits_party_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>coverage_benefits_party_view</VIEW_NAME><Text>	bp.benefit_id ,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>coverage_benefits_party_view</VIEW_NAME><Text>	bp.policy_coverage_id ,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>coverage_benefits_party_view</VIEW_NAME><Text>	bp.height_inches,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>coverage_benefits_party_view</VIEW_NAME><Text>	bp.weight_pounds,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>coverage_benefits_party_view</VIEW_NAME><Text>	p.*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>coverage_benefits_party_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>coverage_benefits_party_view</VIEW_NAME><Text>	coverage_benefits_party bp,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>coverage_benefits_party_view</VIEW_NAME><Text>	person p
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>coverage_benefits_party_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>coverage_benefits_party_view</VIEW_NAME><Text>	bp.person_id = p.person_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>coverage_benefits_party_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>coverage_subaccount_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-646482838</Check_Sum><CREATE_TEXT><VIEW_NAME>coverage_subaccount_view</VIEW_NAME><Text>create view [dbo].[coverage_subaccount_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>coverage_subaccount_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>coverage_subaccount_view</VIEW_NAME><Text>	coverage_subaccounts.policy_coverage_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>coverage_subaccount_view</VIEW_NAME><Text>	tl_subaccount.*,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>coverage_subaccount_view</VIEW_NAME><Text>	coverage_subaccounts.percentage
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>coverage_subaccount_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>coverage_subaccount_view</VIEW_NAME><Text>	coverage_subaccounts,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>coverage_subaccount_view</VIEW_NAME><Text>	tl_subaccount
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>coverage_subaccount_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>coverage_subaccount_view</VIEW_NAME><Text>	tl_subaccount.subaccount_code = coverage_subaccounts.subaccount_code
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>coverage_subaccount_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Add"><VIEW_NAME>customer_lab_report_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-1401124849</Check_Sum><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text></Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>Create VIEW [dbo].[customer_lab_report_view]
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>AS
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>select 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>  r.lab_id_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>  r.requirement_information_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>  r.horl_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>  c.[description],
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>  r.result_value,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>  ISNULL((case when h.sex = 'm' then low_male else low_female end),'') as [low],
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>  ISNULL((case when h.sex = 'm' then high_male else high_female end),'') as [high],
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>  (case when 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	(case when h.sex = 'm' then low_male else low_female end) = 'negative' AND
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	r.result_value &lt;&gt; 'NEG' AND 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>        ((case when h.sex = 'm' then high_male else high_female end) IS NULL OR
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	len(ltrim(rtrim((case when h.sex = 'm' then high_male else high_female end)))) = 0)
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>   then r.result_value else 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>        case when
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	   ISNUMERIC(r.result_value)=1 AND
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	   ISNUMERIC(case when h.sex = 'm' then low_male else low_female end)=1 AND
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	   ISNUMERIC(case when h.sex = 'm' then high_male else high_female end)=1 AND 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	   CONVERT(decimal(10,5), r.result_value) NOT BETWEEN 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	   CONVERT(decimal(10,5), (case when h.sex = 'm' then low_male else low_female end)) AND 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	   CONVERT(decimal(10,5), (case when h.sex = 'm' then high_male else high_female end))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>        then r.result_value else 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	   case when
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>		r.result_value = 'NVG' OR (r.result_value &lt;&gt; 'NEG' AND
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>		(case when h.sex = 'm' then low_male else low_female end) IS NULL AND
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>		(case when h.sex = 'm' then high_male else high_female end) IS NULL)
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	   then 'NVG' else 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>              case when
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	         NOT ISNUMERIC(r.result_value)=1 AND r.result_value &lt;&gt; 'NEG' AND
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	         NOT ISNUMERIC(case when h.sex = 'm' then low_male else low_female end)=1 AND
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	         (case when h.sex = 'm' then low_male else LOW_female end) = 'negative' AND
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	         ISNUMERIC(case when h.sex = 'm' then high_male else high_female end)=1 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	      then r.result_value else 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	         case when
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>		    ISNUMERIC(r.result_value)=1 AND
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>		    NOT ISNUMERIC(case when h.sex = 'm' then low_male else low_female end)=1 AND
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	      	    (case when h.sex = 'm' then low_male else LOW_female end) = 'negative' AND
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>		    ISNUMERIC(case when h.sex = 'm' then high_male else high_female end)=1 AND 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>		    CONVERT(decimal(10,5), r.result_value) NOT BETWEEN 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>		    0.0 AND 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>		    CONVERT(decimal(10,5), (case when h.sex = 'm' then high_male else high_female end))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	         then r.result_value else
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>		    case when r.result_value &lt;&gt; 'NEG' AND r.result_value &lt;&gt; 'POS' AND NOT ISNUMERIC(r.result_value)=1
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>		    then 'N/A' else '' end
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>		 end
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	      end
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	   end
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	end
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>   end) as [abnormal],
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>  (case when 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	(case when h.sex = 'm' then low_male else LOW_female end) = 'negative' AND
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	r.result_value = 'NEG' AND 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>        ((case when h.sex = 'm' then high_male else high_female end) IS NULL OR
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	len(ltrim(rtrim((case when h.sex = 'm' then high_male else high_female end)))) = 0)
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>   then r.result_value else 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>        case when
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	   ISNUMERIC(r.result_value)=1 AND
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	   ISNUMERIC(case when h.sex = 'm' then low_male else low_female end)=1 AND
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	   ISNUMERIC(case when h.sex = 'm' then high_male else high_female end)=1 AND 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	   CONVERT(decimal(10,5), r.result_value) BETWEEN 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	   CONVERT(decimal(10,5), (case when h.sex = 'm' then low_male else low_female end)) AND 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	   CONVERT(decimal(10,5), (case when h.sex = 'm' then high_male else high_female end))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>        then r.result_value else 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>           case when
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	      NOT ISNUMERIC(r.result_value)=1 AND r.result_value = 'NEG' AND
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	      NOT ISNUMERIC(case when h.sex = 'm' then low_male else low_female end)=1 AND
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	      (case when h.sex = 'm' then low_male else LOW_female end) = 'negative' AND
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	      ISNUMERIC(case when h.sex = 'm' then high_male else high_female end)=1 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	   then r.result_value else 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	        case when
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>		   ISNUMERIC(r.result_value)=1 AND
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>		   NOT ISNUMERIC(case when h.sex = 'm' then low_male else low_female end)=1 AND
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	      	   (case when h.sex = 'm' then low_male else LOW_female end) = 'negative' AND
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>		   ISNUMERIC(case when h.sex = 'm' then high_male else high_female end)=1 AND 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>		   CONVERT(decimal(10,5), r.result_value) BETWEEN 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>		   0.0 AND 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>		   CONVERT(decimal(10,5), (case when h.sex = 'm' then high_male else high_female end))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	        then r.result_value
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>			else		
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>			case when
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>			r.result_value = 'NEG' AND
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>			(case when h.sex = 'm' then low_male else low_female end) IS NULL  AND
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>			(case when h.sex = 'm' then high_male else high_female end) IS NULL
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>			then r.result_Value else ''
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>			 end
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>		  end
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>       end
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>	end
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>  end) as [normal],
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>  ISNULL(r.range_text, '') AS range_text
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>from dbo.lab_result as r, dbo.lab_header as h, dbo.tl_ansi_code as c
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>where 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>  r.lab_id_number = h.lab_id_number and 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>  r.requirement_information_id = h.requirement_information_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>customer_lab_report_view</VIEW_NAME><Text>  c.horl_code = r.horl_code
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>customer_lab_report_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>data_mart_address</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-2011398130</Check_Sum><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>create view [dbo].[data_mart_address] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>select distinct
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>p.person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select pa.city from person_address pa
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'RESIDENCE')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id) as residence_city,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select pa.postal_code from person_address pa
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'RESIDENCE')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id) as residence_postal_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select pa.address_line1 from person_address pa
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'RESIDENCE')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id) as residence_address_line1,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select pa.address_line2 from person_address pa
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'RESIDENCE')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id) as residence_address_line2,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select pa.address_line3 from person_address pa
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'RESIDENCE')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id) as residence_address_line3,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select pa.country_id from person_address pa
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'RESIDENCE')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id) as residence_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select cs.state_name from person_address pa, tl_country_state cs
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'RESIDENCE')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and cs.country_state_id = pa.country_state_id) as residence_state_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select cs.state_code from person_address pa, tl_country_state cs
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'RESIDENCE')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and cs.country_state_id = pa.country_state_id) as residence_state_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select c.country_name from person_address pa, tl_country c
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'RESIDENCE')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and c.country_id = pa.country_id) as residence_country_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select pa.city from person_address pa
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'BUSINESS')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id) as business_city,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select pa.postal_code from person_address pa
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'BUSINESS')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id) as business_postal_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select pa.address_line1 from person_address pa
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'BUSINESS')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id) as business_address_line1,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select pa.address_line2 from person_address pa
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'BUSINESS')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id) as business_address_line2,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select pa.address_line3 from person_address pa
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'BUSINESS')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id) as business_address_line3,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select pa.country_id from person_address pa
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'BUSINESS')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id) as business_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select cs.state_name from person_address pa, tl_country_state cs
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'BUSINESS')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and cs.country_state_id = pa.country_state_id) as business_state_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select cs.state_code from person_address pa, tl_country_state cs
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'BUSINESS')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and cs.country_state_id = pa.country_state_id) as business_state_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select c.country_name from person_address pa, tl_country c
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'BUSINESS')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and c.country_id = pa.country_id) as business_country_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select pa.city from person_address pa
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'BILLING')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id) as billing_city,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select pa.postal_code from person_address pa
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'BILLING')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id) as billing_postal_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select pa.address_line1 from person_address pa
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'BILLING')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id) as billing_address_line1,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select pa.address_line2 from person_address pa
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'BILLING')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id) as billing_address_line2,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select pa.address_line3 from person_address pa
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'BILLING')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id) as billing_address_line3,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select pa.country_id from person_address pa
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'BILLING')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id) as billing_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select cs.state_name from person_address pa, tl_country_state cs
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'BILLING')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and cs.country_state_id = pa.country_state_id) as billing_state_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select cs.state_code from person_address pa, tl_country_state cs
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'BILLING')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and cs.country_state_id = pa.country_state_id) as billing_state_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>(select c.country_name from person_address pa, tl_country c
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>where (pa.address_type_code = 'BILLING')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and pa.person_id = p.person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>and c.country_id = pa.country_id) as billing_country_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_address</VIEW_NAME><Text>person p
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>data_mart_address</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>data_mart_case_log</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>347837476</Check_Sum><CREATE_TEXT><VIEW_NAME>data_mart_case_log</VIEW_NAME><Text>create view [dbo].[data_mart_case_log] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_case_log</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_case_log</VIEW_NAME><Text>policy_log_id as case_log_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_case_log</VIEW_NAME><Text>policy_id as case_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_case_log</VIEW_NAME><Text>log_text,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_case_log</VIEW_NAME><Text>user_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_case_log</VIEW_NAME><Text>log_date
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_case_log</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_case_log</VIEW_NAME><Text>policy_log
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>data_mart_case_log</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>data_mart_evidence</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-897473604</Check_Sum><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>create view [dbo].[data_mart_evidence] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>ev.requirement_information_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>ev.insured_requirement_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>ev.create_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>ev.match_method,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>cast(lab.lab_id_number as int) as evidence_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>'LAB' as requirement_type_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>lab.last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>lab.first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>lab.ssn,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>lab.birth_date
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>lab_header lab, requirement_information ev
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>lab.requirement_information_id = ev.requirement_information_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>ev.requirement_information_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>ev.insured_requirement_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>ev.create_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>ev.match_method,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>mvr.mvr_header_id as evidence_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>'MVR' as requirement_type_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>mvr.last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>mvr.first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>mvr.soc_sec_no as ssn,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>mvr.birth_date
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>mvr_header mvr, requirement_information ev
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>mvr.requirement_information_id = ev.requirement_information_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>ev.requirement_information_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>ev.insured_requirement_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>ev.create_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>ev.match_method,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>mib.mib_header_id as evidence_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>'MIB' as requirement_type_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>mib.last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>mib.first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>'' as ssn,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>mib.birth_date
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>mib_header mib, requirement_information ev
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_evidence</VIEW_NAME><Text>mib.requirement_information_id = ev.requirement_information_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>data_mart_evidence</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>data_mart_impairment</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>416741820</Check_Sum><CREATE_TEXT><VIEW_NAME>data_mart_impairment</VIEW_NAME><Text>create view [dbo].[data_mart_impairment] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_impairment</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_impairment</VIEW_NAME><Text>coverage_person_impairment_id as impairment_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_impairment</VIEW_NAME><Text>coverage_person_id as coverage_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_impairment</VIEW_NAME><Text>impairment_restriction_code as impairment_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_impairment</VIEW_NAME><Text>impairment_text
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_impairment</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_impairment</VIEW_NAME><Text>coverage_person_impairment
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>data_mart_impairment</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Add"><VIEW_NAME>data_mart_lab_result</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-578936911</Check_Sum><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>create view [dbo].[data_mart_lab_result] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>p.policy_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>lh.lab_receive_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>lh.last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>lh.first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>lh.birth_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>lh.sex as gender,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>lr.horl_code as ansi_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>ac.description as test_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>lr.result_value as test_result
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>lab_header lh,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>lab_result lr,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>insured_requirement ir,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>tl_ansi_code ac,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>policy_person pp,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>policy p
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>lh.requirement_information_id = lr.requirement_information_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>lr.horl_code = ac.horl_code and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>lh.requirement_information_id = ir.requirement_information_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>ir.policy_person_id = pp.policy_person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>pp.policy_id = p.policy_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>' ' as policy_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>lh.lab_receive_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>lh.last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>lh.first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>lh.birth_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>lh.sex as gender,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>lr.horl_code as ansi_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>ac.description as test_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>lr.result_value as test_result
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>lab_header lh,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>lab_result lr,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>tl_ansi_code ac
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>lh.requirement_information_id = lr.requirement_information_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>lr.horl_code = ac.horl_code and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_lab_result</VIEW_NAME><Text>lh.requirement_information_id not in (select requirement_information_id from insured_requirement where requirement_information_id is not null)
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>data_mart_lab_result</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>data_mart_phone</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-512946462</Check_Sum><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>create view [dbo].[data_mart_phone] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>select distinct
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>p.person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>(select ph.country_calling_code from person_phone ph
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>where ph.phone_type_code = 'HOME'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>and ph.person_id = p.person_id) as home_phone_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>(select ph.area_code from person_phone ph
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>where ph.phone_type_code = 'HOME'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>and ph.person_id = p.person_id) as home_phone_area_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>(select ph.prefix from person_phone ph
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>where ph.phone_type_code = 'HOME'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>and ph.person_id = p.person_id) as home_phone_prefix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>(select ph.suffix from person_phone ph
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>where ph.phone_type_code = 'HOME'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>and ph.person_id = p.person_id) as home_phone_suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>(select ph.extension from person_phone ph
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>where ph.phone_type_code = 'HOME'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>and ph.person_id = p.person_id) as home_phone_extension,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>(select ph.pin from person_phone ph
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>where ph.phone_type_code = 'HOME'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>and ph.person_id = p.person_id) as home_phone_pin,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>(select ph.country_calling_code from person_phone ph
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>where ph.phone_type_code = 'WORK'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>and ph.person_id = p.person_id) as work_phone_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>(select ph.area_code from person_phone ph
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>where ph.phone_type_code = 'WORK'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>and ph.person_id = p.person_id) as work_phone_area_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>(select ph.prefix from person_phone ph
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>where ph.phone_type_code = 'WORK'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>and ph.person_id = p.person_id) as work_phone_prefix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>(select ph.suffix from person_phone ph
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>where ph.phone_type_code = 'WORK'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>and ph.person_id = p.person_id) as work_phone_suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>(select ph.extension from person_phone ph
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>where ph.phone_type_code = 'WORK'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>and ph.person_id = p.person_id) as work_phone_extension,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>(select ph.pin from person_phone ph
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>where ph.phone_type_code = 'WORK'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>and ph.person_id = p.person_id) as work_phone_pin,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>(select ph.country_calling_code from person_phone ph
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>where ph.phone_type_code = 'FAX'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>and ph.person_id = p.person_id) as fax_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>(select ph.area_code from person_phone ph
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>where ph.phone_type_code = 'FAX'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>and ph.person_id = p.person_id) as fax_area_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>(select ph.prefix from person_phone ph
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>where ph.phone_type_code = 'FAX'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>and ph.person_id = p.person_id) as fax_prefix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>(select ph.suffix from person_phone ph
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>where ph.phone_type_code = 'FAX'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>and ph.person_id = p.person_id) as fax_suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>(select ph.extension from person_phone ph
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>where ph.phone_type_code = 'FAX'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>and ph.person_id = p.person_id) as fax_extension,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>(select ph.pin from person_phone ph
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>where ph.phone_type_code = 'FAX'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>and ph.person_id = p.person_id) as fax_pin
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_phone</VIEW_NAME><Text>person p
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>data_mart_phone</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>669859944</Check_Sum><CREATE_TEXT><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><Text>create view [dbo].[diary_activity_proxy_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><Text>	n.author as user_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><Text>	(select login_id from aus_user where user_id = n.author) as user_login_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><Text>	n.diary_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><Text>	p.policy_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><Text>	p.policy_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><Text>	i.title as insured_title,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><Text>	i.last_name as insured_last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><Text>	i.middle_name as insured_middle_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><Text>	i.first_name as insured_first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><Text>	i.suffix as insured_suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><Text>	n.topic,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><Text>	p.team_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><Text>	policy p,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><Text>	policy_person pp,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><Text>	person i,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><Text>	notes n
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><Text>	n.diary_date is not NULL and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><Text>	(n.note_type='Req' or n.note_type='Refer' or n.note_type='Review') and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><Text>	p.policy_id = pp.policy_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><Text>	pp.person_id = i.person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME><Text>	pp.policy_person_id = n.policy_person_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>diary_activity_proxy_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>evidence_status_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-1739762361</Check_Sum><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>create view [dbo].[evidence_status_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>	ri.requirement_information_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>	ri.create_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>	ri.match_method,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>	ri.status,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>	ri.vendor_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>	ri.manual_or_electronic_entry,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>	ri.expiration_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>	ri.added_by,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>	ri.requirement_type_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>	ri.requirement_request_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>	ri.lifespan_days,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>	es.evidence_status_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>	es.insured_requirement_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>	es.status_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>	es.code_source,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>	es.code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>	es.message_text,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>	es.status_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>	'' as last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>	'' as middle_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>	'' as first_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>	requirement_information ri,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>	evidence_status es
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>evidence_status_view</VIEW_NAME><Text>	ri.requirement_information_id = es.requirement_information_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>evidence_status_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>form_data_proxy_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-1538312913</Check_Sum><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>create view [dbo].[form_data_proxy_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.requirement_information_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	0 as team_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.form_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.case_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.middle_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.title,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.birthdate,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.sex,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.tax_id_no,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.policy_person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.added_by,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	u.last_name as user_last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	u.first_name as user_first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.updated_by,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	ri.create_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	ri.expiration_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	ri.requirement_type_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	requirement_information ri,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	form_instance fi,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	aus_user au,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	person u
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.requirement_information_id = ri.requirement_information_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.added_by = au.user_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	au.person_id = u.person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>union select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.requirement_information_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	tu.team_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.form_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.case_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.middle_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.title,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.birthdate,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.sex,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.tax_id_no,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.policy_person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.added_by,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	u.last_name as user_last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	u.first_name as user_first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.updated_by,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	ri.create_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	ri.expiration_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	ri.requirement_type_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	requirement_information ri,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	form_instance fi,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	aus_user au,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	person u,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	tr_user_team tu
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.requirement_information_id = ri.requirement_information_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	fi.added_by = au.user_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	au.person_id = u.person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_proxy_view</VIEW_NAME><Text>	tu.user_id = fi.added_by
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>form_data_proxy_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>form_data_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-684140532</Check_Sum><CREATE_TEXT><VIEW_NAME>form_data_view</VIEW_NAME><Text>create view [dbo].[form_data_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_view</VIEW_NAME><Text>	fi.*,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_view</VIEW_NAME><Text>	ri.create_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_view</VIEW_NAME><Text>	ri.match_method,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_view</VIEW_NAME><Text>	ri.status,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_view</VIEW_NAME><Text>	ri.vendor_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_view</VIEW_NAME><Text>	ri.manual_or_electronic_entry,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_view</VIEW_NAME><Text>	ri.expiration_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_view</VIEW_NAME><Text>	ri.requirement_type_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_view</VIEW_NAME><Text>	ri.requirement_request_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_view</VIEW_NAME><Text>	ri.lifespan_days,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_view</VIEW_NAME><Text>	ri.insured_requirement_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_view</VIEW_NAME><Text>	requirement_information ri,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_view</VIEW_NAME><Text>	form_instance fi
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_data_view</VIEW_NAME><Text>	fi.requirement_information_id = ri.requirement_information_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>form_data_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>form_question_cmt_operand_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-320544028</Check_Sum><CREATE_TEXT><VIEW_NAME>form_question_cmt_operand_view</VIEW_NAME><Text>create view [dbo].[form_question_cmt_operand_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_cmt_operand_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_cmt_operand_view</VIEW_NAME><Text>	'getInsured.getFormQuestionComments(Form' + rtrim(form_code) + 'Question' + rtrim(question_label) + ')' as name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_cmt_operand_view</VIEW_NAME><Text>	'str' as type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_cmt_operand_view</VIEW_NAME><Text>	'Form ' + rtrim(form_code) + ' Question ' + rtrim(question_label) + ' (Comments)' as display,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_cmt_operand_view</VIEW_NAME><Text>	'Comment for Question ' + rtrim(question_label) + ': ' + rtrim(question_text) as description,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_cmt_operand_view</VIEW_NAME><Text>	'' as value_list
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_cmt_operand_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_cmt_operand_view</VIEW_NAME><Text>	form_question
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>form_question_cmt_operand_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>form_question_operand_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>1443203319</Check_Sum><CREATE_TEXT><VIEW_NAME>form_question_operand_view</VIEW_NAME><Text>create view [dbo].[form_question_operand_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_operand_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_operand_view</VIEW_NAME><Text>	'getInsured.getFormQuestionValue(Form' + rtrim(form_code) + 'Question' + rtrim(question_label) + ')' as name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_operand_view</VIEW_NAME><Text>	'str' as type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_operand_view</VIEW_NAME><Text>	'Form ' + rtrim(form_code) + ' Question ' + rtrim(question_label) as display,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_operand_view</VIEW_NAME><Text>	'Question ' + rtrim(question_label) + ': ' + rtrim(question_text) as description,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_operand_view</VIEW_NAME><Text>	'Answer Set ' + rtrim(answer_set_name) as value_list
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_operand_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_operand_view</VIEW_NAME><Text>	form_question
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>form_question_operand_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>form_question_proxy_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-658188752</Check_Sum><CREATE_TEXT><VIEW_NAME>form_question_proxy_view</VIEW_NAME><Text>create view [dbo].[form_question_proxy_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_proxy_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_proxy_view</VIEW_NAME><Text>	grp.form_question_group_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_proxy_view</VIEW_NAME><Text>	grp.form_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_proxy_view</VIEW_NAME><Text>	grp.form_section_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_proxy_view</VIEW_NAME><Text>	grp.display_sequence,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_proxy_view</VIEW_NAME><Text>	grp.group_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_proxy_view</VIEW_NAME><Text>	q.question_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_proxy_view</VIEW_NAME><Text>	q.sequence_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_proxy_view</VIEW_NAME><Text>	q.question_label,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_proxy_view</VIEW_NAME><Text>	q.question_text,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_proxy_view</VIEW_NAME><Text>	q.question_type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_proxy_view</VIEW_NAME><Text>	q.data_type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_proxy_view</VIEW_NAME><Text>	q.answer_set_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_proxy_view</VIEW_NAME><Text>	q.min_size,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_proxy_view</VIEW_NAME><Text>	q.max_size,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_proxy_view</VIEW_NAME><Text>	q.external_question_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_proxy_view</VIEW_NAME><Text>	q.alt_question_text
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_proxy_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_proxy_view</VIEW_NAME><Text>	form_question_group grp,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_proxy_view</VIEW_NAME><Text>	form_question q
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_proxy_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_proxy_view</VIEW_NAME><Text>	grp.form_question_group_id = q.question_group_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_proxy_view</VIEW_NAME><Text>	grp.form_code = q.form_code and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>form_question_proxy_view</VIEW_NAME><Text>	grp.form_section_id = q.form_section_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>form_question_proxy_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Add"><VIEW_NAME>ins_open_post_issue_req_count</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>1627879291</Check_Sum><CREATE_TEXT><VIEW_NAME>ins_open_post_issue_req_count</VIEW_NAME><Text>create view [dbo].[ins_open_post_issue_req_count] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ins_open_post_issue_req_count</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ins_open_post_issue_req_count</VIEW_NAME><Text>	ir.policy_person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ins_open_post_issue_req_count</VIEW_NAME><Text>	count(ir.insured_requirement_id) as open_pi_req
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ins_open_post_issue_req_count</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ins_open_post_issue_req_count</VIEW_NAME><Text>	insured_requirement ir,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ins_open_post_issue_req_count</VIEW_NAME><Text>	tl_requirement t
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ins_open_post_issue_req_count</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ins_open_post_issue_req_count</VIEW_NAME><Text>	(ir.closed_disposition is null or ir.closed_disposition in ('O', 'OR', 'H', 'R')) and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ins_open_post_issue_req_count</VIEW_NAME><Text>	ir.requirement_code = t.requirement_code and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ins_open_post_issue_req_count</VIEW_NAME><Text>	t.requirement_category = 0
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ins_open_post_issue_req_count</VIEW_NAME><Text>group by
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ins_open_post_issue_req_count</VIEW_NAME><Text>	ir.policy_person_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>ins_open_post_issue_req_count</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>insured</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>1514953092</Check_Sum><CREATE_TEXT><VIEW_NAME>insured</VIEW_NAME><Text>create view [dbo].[insured] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured</VIEW_NAME><Text>policy_person.policy_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured</VIEW_NAME><Text>person.*,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured</VIEW_NAME><Text>policy_person_insured.*,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured</VIEW_NAME><Text>policy_person.role_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured</VIEW_NAME><Text>policy_person.sub_role_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured</VIEW_NAME><Text>policy_person.relationship_to_insured
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured</VIEW_NAME><Text>person, policy_person, policy_person_insured
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured</VIEW_NAME><Text>policy_person_insured.policy_person_id = policy_person.policy_person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured</VIEW_NAME><Text>policy_person.role_id = 'insured' and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured</VIEW_NAME><Text>policy_person.person_id = person.person_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>insured</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>insured_cov_beneficiary_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>1081808970</Check_Sum><CREATE_TEXT><VIEW_NAME>insured_cov_beneficiary_view</VIEW_NAME><Text>create view [dbo].[insured_cov_beneficiary_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_cov_beneficiary_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_cov_beneficiary_view</VIEW_NAME><Text>	coverage_person.policy_coverage_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_cov_beneficiary_view</VIEW_NAME><Text>	coverage_person.role_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_cov_beneficiary_view</VIEW_NAME><Text>	coverage_person.relationship_to_insured_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_cov_beneficiary_view</VIEW_NAME><Text>	coverage_person_beneficiary.*,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_cov_beneficiary_view</VIEW_NAME><Text>	person.*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_cov_beneficiary_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_cov_beneficiary_view</VIEW_NAME><Text>	coverage_person_beneficiary,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_cov_beneficiary_view</VIEW_NAME><Text>	coverage_person,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_cov_beneficiary_view</VIEW_NAME><Text>	person
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_cov_beneficiary_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_cov_beneficiary_view</VIEW_NAME><Text>	(coverage_person.role_id = 'primarybeneficiary' or
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_cov_beneficiary_view</VIEW_NAME><Text>	coverage_person.role_id = 'contigbeneficiary') and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_cov_beneficiary_view</VIEW_NAME><Text>	person.person_id = coverage_person.person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_cov_beneficiary_view</VIEW_NAME><Text>	coverage_person_beneficiary.coverage_person_id = coverage_person.coverage_person_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>insured_cov_beneficiary_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>insured_coverages_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>2062301001</Check_Sum><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>create view [dbo].[insured_coverages_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>pc.policy_coverage_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>pc.policy_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>pc.plan_code_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>pc.death_benefit_option_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>pc.purpose_of_coverage_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>pc.coverage_type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>pc.indicator_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>pc.amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>pc.premium_mode,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>pc.investment_objective,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>pc.pref_date_of_withdrawl,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>pc.planned_premium,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>pc.initial_planned_premium,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>pc.equivalent_age,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>pc.can_take_final_action_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>pc.dividend_option,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>pc.approved_amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>pc.benefit_amount_basis,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>pc.modal_premium_amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>cp.person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>cp.role_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>cp.relationship_to_insured_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>cpi.*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>policy_coverage pc,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>coverage_person cp,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>coverage_person_insured cpi
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>cpi.coverage_person_id = cp.coverage_person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>insured_coverages_view</VIEW_NAME><Text>cp.policy_coverage_id = pc.policy_coverage_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>insured_coverages_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Add"><VIEW_NAME>lab_comment_operand_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-2131235945</Check_Sum><CREATE_TEXT><VIEW_NAME>lab_comment_operand_view</VIEW_NAME><Text></Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_comment_operand_view</VIEW_NAME><Text>create view lab_comment_operand_view as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_comment_operand_view</VIEW_NAME><Text>SELECT   DISTINCT 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_comment_operand_view</VIEW_NAME><Text>			   'getInsured.getLabCommentsById('+  RTRIM(remark_id) +  ')' AS name, 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_comment_operand_view</VIEW_NAME><Text>               'str' AS type, 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_comment_operand_view</VIEW_NAME><Text>               'Lab Comment:' + RTRIM(remark_id) AS display, 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_comment_operand_view</VIEW_NAME><Text>               'Lab Comment Code:' + RTRIM(remark_id) AS description, 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_comment_operand_view</VIEW_NAME><Text>               '' AS value_list
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_comment_operand_view</VIEW_NAME><Text>FROM     dbo.lab_comment
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>lab_comment_operand_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>lab_proxy_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-121621338</Check_Sum><CREATE_TEXT><VIEW_NAME>lab_proxy_view</VIEW_NAME><Text>create view [dbo].[lab_proxy_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_proxy_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_proxy_view</VIEW_NAME><Text>	ev.requirement_information_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_proxy_view</VIEW_NAME><Text>	ev.create_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_proxy_view</VIEW_NAME><Text>	ev.expiration_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_proxy_view</VIEW_NAME><Text>	ev.insured_requirement_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_proxy_view</VIEW_NAME><Text>	lab.lab_id_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_proxy_view</VIEW_NAME><Text>	lab.lab_type_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_proxy_view</VIEW_NAME><Text>	lab.drawn_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_proxy_view</VIEW_NAME><Text>	lab.test_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_proxy_view</VIEW_NAME><Text>	lab.last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_proxy_view</VIEW_NAME><Text>	lab.first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_proxy_view</VIEW_NAME><Text>	lab.middle_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_proxy_view</VIEW_NAME><Text>	lab.ssn,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_proxy_view</VIEW_NAME><Text>	lab.birth_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_proxy_view</VIEW_NAME><Text>	lab.sex,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_proxy_view</VIEW_NAME><Text>	lab.lab_receive_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_proxy_view</VIEW_NAME><Text>	lab.company_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_proxy_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_proxy_view</VIEW_NAME><Text>	lab_header lab, requirement_information ev
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_proxy_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_proxy_view</VIEW_NAME><Text>	lab.requirement_information_id = ev.requirement_information_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>lab_proxy_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>lab_result_operand_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-1331563266</Check_Sum><CREATE_TEXT><VIEW_NAME>lab_result_operand_view</VIEW_NAME><Text>create view [dbo].[lab_result_operand_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_operand_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_operand_view</VIEW_NAME><Text>	'getInsured.getLabResultValueById(' + rtrim(horl_code) + ')' as name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_operand_view</VIEW_NAME><Text>	'dec' as type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_operand_view</VIEW_NAME><Text>	'Lab Result ' + rtrim(horl_code) + ': ' + rtrim(description) as display,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_operand_view</VIEW_NAME><Text>	(rtrim(horl_code) + ' ' + rtrim(description) + ', Male: ' + rtrim(low_male) + ' - ' + rtrim(high_male) + ' ' + rtrim(unit) + ', Female: ' + rtrim(low_female) + ' - ' + rtrim(high_female) + ' ' + rtrim(unit)) as description,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_operand_view</VIEW_NAME><Text>	'' as value_list
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_operand_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_operand_view</VIEW_NAME><Text>	tl_ansi_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_operand_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_operand_view</VIEW_NAME><Text>	low_male is not null
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_operand_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_operand_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_operand_view</VIEW_NAME><Text>	'getInsured.getLabResultValueById(' + rtrim(horl_code) + ')' as name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_operand_view</VIEW_NAME><Text>	'dec' as type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_operand_view</VIEW_NAME><Text>	'Lab Result ' + rtrim(horl_code) + ': ' + rtrim(description) as display,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_operand_view</VIEW_NAME><Text>	(rtrim(horl_code) + ' ' + rtrim(description)) as description,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_operand_view</VIEW_NAME><Text>	'' as value_list
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_operand_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_operand_view</VIEW_NAME><Text>	tl_ansi_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_operand_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_operand_view</VIEW_NAME><Text>	low_male is null
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>lab_result_operand_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>lab_result_text_operand_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-2115723774</Check_Sum><CREATE_TEXT><VIEW_NAME>lab_result_text_operand_view</VIEW_NAME><Text>create view [dbo].[lab_result_text_operand_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_text_operand_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_text_operand_view</VIEW_NAME><Text>	'getInsured.getLabResultTextById(' + rtrim(horl_code) + ')' as name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_text_operand_view</VIEW_NAME><Text>	'str' as type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_text_operand_view</VIEW_NAME><Text>	'Lab Result ' + rtrim(horl_code) + ': ' + rtrim(description) + ' (Text)' as display,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_text_operand_view</VIEW_NAME><Text>	(rtrim(horl_code) + ' ' + rtrim(description) + ' (Text), Male: ' + rtrim(low_male) + ' - ' + rtrim(high_male) +
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_text_operand_view</VIEW_NAME><Text>	' ' + rtrim(unit) + ', Female: ' + rtrim(low_female) + ' - ' + rtrim(high_female) + ' ' + rtrim(unit)) as description,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_text_operand_view</VIEW_NAME><Text>	'' as value_list
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_text_operand_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_text_operand_view</VIEW_NAME><Text>	tl_ansi_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_text_operand_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_text_operand_view</VIEW_NAME><Text>	low_male is not null
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_text_operand_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_text_operand_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_text_operand_view</VIEW_NAME><Text>	'getInsured.getLabResultTextById(' + rtrim(horl_code) + ')' as name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_text_operand_view</VIEW_NAME><Text>	'str' as type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_text_operand_view</VIEW_NAME><Text>	'Lab Result ' + rtrim(horl_code) + ': ' + rtrim(description) + ' (Text)' as display,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_text_operand_view</VIEW_NAME><Text>	(rtrim(horl_code) + ' ' + rtrim(description)) + '(Text)' as description,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_text_operand_view</VIEW_NAME><Text>	'' as value_list
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_text_operand_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_text_operand_view</VIEW_NAME><Text>	tl_ansi_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_text_operand_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_result_text_operand_view</VIEW_NAME><Text>	low_male is null
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>lab_result_text_operand_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>lab_specimen_match_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-1370467686</Check_Sum><CREATE_TEXT><VIEW_NAME>lab_specimen_match_view</VIEW_NAME><Text>create view [dbo].[lab_specimen_match_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_specimen_match_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_specimen_match_view</VIEW_NAME><Text>	lab_specimin_id as lab_specimen_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_specimen_match_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_specimen_match_view</VIEW_NAME><Text>	tl_lab_specimen
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_specimen_match_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_specimen_match_view</VIEW_NAME><Text>	can_match is not null and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_specimen_match_view</VIEW_NAME><Text>	can_match &lt;&gt; 0
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>lab_specimen_match_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>lab_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-99406281</Check_Sum><CREATE_TEXT><VIEW_NAME>lab_view</VIEW_NAME><Text>create view [dbo].[lab_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_view</VIEW_NAME><Text>select distinct
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_view</VIEW_NAME><Text>	req.policy_person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_view</VIEW_NAME><Text>	ev.create_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_view</VIEW_NAME><Text>	ev.match_method,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_view</VIEW_NAME><Text>	ev.status,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_view</VIEW_NAME><Text>	ev.vendor_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_view</VIEW_NAME><Text>	ev.manual_or_electronic_entry,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_view</VIEW_NAME><Text>	ev.expiration_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_view</VIEW_NAME><Text>	ev.added_by,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_view</VIEW_NAME><Text>	ev.requirement_type_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_view</VIEW_NAME><Text>	ev.requirement_request_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_view</VIEW_NAME><Text>	ev.lifespan_days,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_view</VIEW_NAME><Text>	ev.insured_requirement_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_view</VIEW_NAME><Text>	lab.*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_view</VIEW_NAME><Text>	insured_requirement req, requirement_information ev, lab_header lab
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_view</VIEW_NAME><Text>	req.requirement_information_id = ev.requirement_information_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lab_view</VIEW_NAME><Text>	ev.requirement_information_id = lab.requirement_information_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>lab_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>log_event_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>314566213</Check_Sum><CREATE_TEXT><VIEW_NAME>log_event_view</VIEW_NAME><Text>create view [dbo].[log_event_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>log_event_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>log_event_view</VIEW_NAME><Text>	*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>log_event_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>log_event_view</VIEW_NAME><Text>	aus_event
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>log_event_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>log_event_view</VIEW_NAME><Text>	aus_cmd &gt;= 20 and aus_cmd &lt; 30
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>log_event_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>ls_system_search_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-294555382</Check_Sum><CREATE_TEXT><VIEW_NAME>ls_system_search_view</VIEW_NAME><Text>create view [dbo].[ls_system_search_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ls_system_search_view</VIEW_NAME><Text>select p.policy_number as policy_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ls_system_search_view</VIEW_NAME><Text>       per.last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ls_system_search_view</VIEW_NAME><Text>       per.first_name ,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ls_system_search_view</VIEW_NAME><Text>       per.birth_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ls_system_search_view</VIEW_NAME><Text>       per.tax_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ls_system_search_view</VIEW_NAME><Text>      (select per2.last_name from company c, person per2 where  p.cedent_company_code = c.company_code and c.person_id = per2.person_id) as cedent_company,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ls_system_search_view</VIEW_NAME><Text>         pc.approved_amount as decision_amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ls_system_search_view</VIEW_NAME><Text>       cpi.coverage_status as action,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ls_system_search_view</VIEW_NAME><Text>       cpi.perm_table_rating as rating,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ls_system_search_view</VIEW_NAME><Text>      (select 'yes'from coverage_person_insured cpi2 where cpi.policy_person_id = cpi2.policy_person_id and cpi.coverage_person_id = cpi2.coverage_person_id and cpi.is_smoker = -1
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ls_system_search_view</VIEW_NAME><Text>       union select 'no'from coverage_person_insured cpi2 where cpi.policy_person_id = cpi2.policy_person_id and cpi.coverage_person_id = cpi2.coverage_person_id and cpi.is_smoker = 0
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ls_system_search_view</VIEW_NAME><Text>       )  as smoker,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ls_system_search_view</VIEW_NAME><Text>       cpi.final_action_date as action_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ls_system_search_view</VIEW_NAME><Text>       p.updated_date as policy_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ls_system_search_view</VIEW_NAME><Text>       p.policy_status
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ls_system_search_view</VIEW_NAME><Text>from policy p, policy_person pp, person per, coverage_person_insured cpi, policy_coverage pc, coverage_person cp
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ls_system_search_view</VIEW_NAME><Text>where p.policy_id = pp.policy_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ls_system_search_view</VIEW_NAME><Text>and p.policy_id = pc.policy_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ls_system_search_view</VIEW_NAME><Text>and pp.role_id = 'insured'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ls_system_search_view</VIEW_NAME><Text>and pp.person_id = per.person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ls_system_search_view</VIEW_NAME><Text>and pc.policy_coverage_id = cp.policy_coverage_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ls_system_search_view</VIEW_NAME><Text>and cpi.coverage_person_id = cp.coverage_person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ls_system_search_view</VIEW_NAME><Text>and pp.policy_person_id = cpi.policy_person_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>ls_system_search_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Add"><VIEW_NAME>lv_benefit_by_plan_code</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-859619677</Check_Sum><CREATE_TEXT><VIEW_NAME>lv_benefit_by_plan_code</VIEW_NAME><Text></Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lv_benefit_by_plan_code</VIEW_NAME><Text>CREATE view [dbo].[lv_benefit_by_plan_code] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lv_benefit_by_plan_code</VIEW_NAME><Text>select p.language_code, 'benefit_' + lower(rtrim(ltrim(p.plan_code_id))) as code_type, cast(p.benefit_id as char(30)) as code_id, cast(b.name as char(30)) as code_value, '' as external_code 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lv_benefit_by_plan_code</VIEW_NAME><Text>from plan_benefit p inner join tl_benefit_type b 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>lv_benefit_by_plan_code</VIEW_NAME><Text>on p.benefit_id=b.benefit_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>lv_benefit_by_plan_code</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>mib_proxy_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-1799512132</Check_Sum><CREATE_TEXT><VIEW_NAME>mib_proxy_view</VIEW_NAME><Text>create view [dbo].[mib_proxy_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_proxy_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_proxy_view</VIEW_NAME><Text>	mib.*,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_proxy_view</VIEW_NAME><Text>	ev.expiration_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_proxy_view</VIEW_NAME><Text>	ev.create_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_proxy_view</VIEW_NAME><Text>	ev.person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_proxy_view</VIEW_NAME><Text>	ev.match_method,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_proxy_view</VIEW_NAME><Text>	ev.status,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_proxy_view</VIEW_NAME><Text>	ev.vendor_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_proxy_view</VIEW_NAME><Text>	ev.manual_or_electronic_entry,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_proxy_view</VIEW_NAME><Text>	ev.added_by,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_proxy_view</VIEW_NAME><Text>	ev.requirement_type_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_proxy_view</VIEW_NAME><Text>	ev.requirement_request_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_proxy_view</VIEW_NAME><Text>	ev.lifespan_days,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_proxy_view</VIEW_NAME><Text>	ev.insured_requirement_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_proxy_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_proxy_view</VIEW_NAME><Text>	mib_header mib, requirement_information ev
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_proxy_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_proxy_view</VIEW_NAME><Text>	mib.requirement_information_id = ev.requirement_information_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>mib_proxy_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>mib_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-99930577</Check_Sum><CREATE_TEXT><VIEW_NAME>mib_view</VIEW_NAME><Text>create view [dbo].[mib_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_view</VIEW_NAME><Text>select distinct
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_view</VIEW_NAME><Text>	req.policy_person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_view</VIEW_NAME><Text>	ev.create_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_view</VIEW_NAME><Text>	ev.match_method,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_view</VIEW_NAME><Text>	ev.status,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_view</VIEW_NAME><Text>	ev.vendor_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_view</VIEW_NAME><Text>	ev.manual_or_electronic_entry,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_view</VIEW_NAME><Text>	ev.expiration_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_view</VIEW_NAME><Text>	ev.added_by,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_view</VIEW_NAME><Text>	ev.requirement_type_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_view</VIEW_NAME><Text>	ev.requirement_request_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_view</VIEW_NAME><Text>	ev.lifespan_days,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_view</VIEW_NAME><Text>	ev.insured_requirement_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_view</VIEW_NAME><Text>	mib.*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_view</VIEW_NAME><Text>	insured_requirement req, requirement_information ev, mib_header mib
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_view</VIEW_NAME><Text>	req.insured_requirement_id = ev.insured_requirement_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mib_view</VIEW_NAME><Text>	ev.requirement_information_id = mib.requirement_information_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>mib_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>mvr_proxy_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-1753126043</Check_Sum><CREATE_TEXT><VIEW_NAME>mvr_proxy_view</VIEW_NAME><Text>create view [dbo].[mvr_proxy_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_proxy_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_proxy_view</VIEW_NAME><Text>	mvr.*,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_proxy_view</VIEW_NAME><Text>	ev.expiration_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_proxy_view</VIEW_NAME><Text>	ev.create_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_proxy_view</VIEW_NAME><Text>	ev.insured_requirement_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_proxy_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_proxy_view</VIEW_NAME><Text>	mvr_header mvr, requirement_information ev
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_proxy_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_proxy_view</VIEW_NAME><Text>	mvr.requirement_information_id = ev.requirement_information_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>mvr_proxy_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>mvr_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-99275209</Check_Sum><CREATE_TEXT><VIEW_NAME>mvr_view</VIEW_NAME><Text>create view [dbo].[mvr_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_view</VIEW_NAME><Text>select distinct
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_view</VIEW_NAME><Text>	req.policy_person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_view</VIEW_NAME><Text>	ev.create_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_view</VIEW_NAME><Text>	ev.match_method,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_view</VIEW_NAME><Text>	ev.status,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_view</VIEW_NAME><Text>	ev.vendor_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_view</VIEW_NAME><Text>	ev.manual_or_electronic_entry,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_view</VIEW_NAME><Text>	ev.expiration_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_view</VIEW_NAME><Text>	ev.added_by,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_view</VIEW_NAME><Text>	ev.requirement_type_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_view</VIEW_NAME><Text>	ev.requirement_request_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_view</VIEW_NAME><Text>	ev.lifespan_days,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_view</VIEW_NAME><Text>	ev.insured_requirement_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_view</VIEW_NAME><Text>	mvr.*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_view</VIEW_NAME><Text>	insured_requirement req, requirement_information ev, mvr_header mvr
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_view</VIEW_NAME><Text>	req.requirement_information_id = ev.requirement_information_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>mvr_view</VIEW_NAME><Text>	ev.requirement_information_id = mvr.requirement_information_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>mvr_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>owner_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-602380466</Check_Sum><CREATE_TEXT><VIEW_NAME>owner_view</VIEW_NAME><Text>create view [dbo].[owner_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>owner_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>owner_view</VIEW_NAME><Text>policy_person.policy_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>owner_view</VIEW_NAME><Text>policy_person.policy_person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>owner_view</VIEW_NAME><Text>policy_person.relationship_to_insured,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>owner_view</VIEW_NAME><Text>policy_person.role_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>owner_view</VIEW_NAME><Text>policy_person.sub_role_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>owner_view</VIEW_NAME><Text>person.*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>owner_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>owner_view</VIEW_NAME><Text>person,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>owner_view</VIEW_NAME><Text>policy_person
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>owner_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>owner_view</VIEW_NAME><Text>policy_person.person_id = person.person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>owner_view</VIEW_NAME><Text>policy_person.role_id = 'owner'
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>owner_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>paramed_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>1239861761</Check_Sum><CREATE_TEXT><VIEW_NAME>paramed_view</VIEW_NAME><Text>create view [dbo].[paramed_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>paramed_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>paramed_view</VIEW_NAME><Text>	p.*,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>paramed_view</VIEW_NAME><Text>	ri.create_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>paramed_view</VIEW_NAME><Text>	ri.match_method,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>paramed_view</VIEW_NAME><Text>	ri.status,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>paramed_view</VIEW_NAME><Text>	ri.vendor_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>paramed_view</VIEW_NAME><Text>	ri.manual_or_electronic_entry,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>paramed_view</VIEW_NAME><Text>	ri.expiration_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>paramed_view</VIEW_NAME><Text>	ri.requirement_type_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>paramed_view</VIEW_NAME><Text>	ri.requirement_request_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>paramed_view</VIEW_NAME><Text>	ri.lifespan_days,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>paramed_view</VIEW_NAME><Text>	ri.insured_requirement_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>paramed_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>paramed_view</VIEW_NAME><Text>	requirement_information ri,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>paramed_view</VIEW_NAME><Text>	paramed p
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>paramed_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>paramed_view</VIEW_NAME><Text>	p.requirement_information_id = ri.requirement_information_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>paramed_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>party_proxy_person_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-757703458</Check_Sum><CREATE_TEXT><VIEW_NAME>party_proxy_person_view</VIEW_NAME><Text>create view [dbo].[party_proxy_person_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_person_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_person_view</VIEW_NAME><Text>  '' as case_party_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_person_view</VIEW_NAME><Text>  '' as case_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_person_view</VIEW_NAME><Text>  '' as party_type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_person_view</VIEW_NAME><Text>  '' as relation,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_person_view</VIEW_NAME><Text>  '' as case_group_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_person_view</VIEW_NAME><Text>  person.*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_person_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_person_view</VIEW_NAME><Text>  person
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_person_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_person_view</VIEW_NAME><Text>  (person_type_id is null or person_type_id &lt;&gt; 'Company')
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>party_proxy_person_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>party_proxy_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>397328928</Check_Sum><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>create view [dbo].[party_proxy_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>SELECT     policy_person.policy_person_id AS case_party_id, policy_person.policy_id AS case_id, policy_person.role_id AS party_type, 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>                      policy_person.relationship_to_insured AS relation, policy.case_group_id, person.person_id, person.party_id, person.last_name, person.first_name, 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>                      person.middle_name, person.birth_name, person.title, person.suffix, person.tax_id, person.tax_type_id, person.birth_date, person.sex, 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>                      person.person_type_id, person.preferred_language_code, person.email_address, person.marital_status, person.client_id, person.alt_email_address, 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>                      person.preferred_contact_mode, person.class_type, person.field1, person.field2, person.field3, person.field4, person.field5,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>                          (SELECT     primary_insured_flag
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>                            FROM          policy_person_insured
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>                            WHERE      (policy_person_id = policy_person.policy_person_id)) AS primary_flag
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>FROM         policy INNER JOIN
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>                      policy_person ON policy.policy_id = policy_person.policy_id INNER JOIN
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>                      person ON policy_person.person_id = person.person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>WHERE     (person.person_type_id IS NULL) OR
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>                      (person.person_type_id &lt;&gt; 'Company')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>UNION
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>SELECT     coverage_person.coverage_person_id AS case_party_id, policy_coverage.policy_id AS case_id, coverage_person.role_id AS party_type, 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>                      coverage_person.relationship_to_insured_code AS relation, policy_1.case_group_id, person_1.person_id, person_1.party_id, person_1.last_name, 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>                      person_1.first_name, person_1.middle_name, person_1.birth_name, person_1.title, person_1.suffix, person_1.tax_id, person_1.tax_type_id, 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>                      person_1.birth_date, person_1.sex, person_1.person_type_id, person_1.preferred_language_code, person_1.email_address, person_1.marital_status, 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>                      person_1.client_id, person_1.alt_email_address, person_1.preferred_contact_mode, person_1.class_type, person_1.field1, person_1.field2, 
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>                      person_1.field3, person_1.field4, person_1.field5, 0 AS primary_flag
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>FROM         person AS person_1 INNER JOIN
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>                      coverage_person ON person_1.person_id = coverage_person.person_id INNER JOIN
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>                      policy_coverage ON coverage_person.policy_coverage_id = policy_coverage.policy_coverage_id INNER JOIN
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>                      policy AS policy_1 ON policy_coverage.policy_id = policy_1.policy_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>WHERE     (coverage_person.role_id IS NULL OR
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>                      coverage_person.role_id &lt;&gt; 'insured') AND (person_1.person_type_id IS NULL OR
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_proxy_view</VIEW_NAME><Text>                      person_1.person_type_id &lt;&gt; 'Company')
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>party_proxy_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>party_relation_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>846996491</Check_Sum><CREATE_TEXT><VIEW_NAME>party_relation_view</VIEW_NAME><Text>create view [dbo].[party_relation_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_relation_view</VIEW_NAME><Text>select pr.parent_id ,p.*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_relation_view</VIEW_NAME><Text>from party_relation pr, person p
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_relation_view</VIEW_NAME><Text>where pr.person_id = p.person_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>party_relation_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>party_requirement_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-1420760602</Check_Sum><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>create view [dbo].[party_requirement_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	p.party_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	ir.policy_person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	ir.insured_requirement_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	ir.ordered_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	ir.manual_or_automatic_entry,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	ir.requirement_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	ir.provider,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	ir.evidence_type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	ir.provider_order_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	'' as closed_date
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	person p,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	policy_person pp,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	insured_requirement ir
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	p.person_id = pp.person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	ir.policy_person_id = pp.policy_person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	ir.provider_order_id is null
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	p.party_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	ir.policy_person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	ir.insured_requirement_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	ir.ordered_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	ir.manual_or_automatic_entry,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	ir.requirement_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	ir.provider,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	ir.evidence_type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	ir.provider_order_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	po.closed_date
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	person p,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	policy_person pp,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	insured_requirement ir,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	provider_order po
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	p.person_id = pp.person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	ir.policy_person_id = pp.policy_person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_requirement_view</VIEW_NAME><Text>	po.provider_order_id = ir.provider_order_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>party_requirement_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>party_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-2057708798</Check_Sum><CREATE_TEXT><VIEW_NAME>party_view</VIEW_NAME><Text>create view [dbo].[party_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>party_view</VIEW_NAME><Text>select * from person where class_type is not null
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>party_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>payor_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-570483378</Check_Sum><CREATE_TEXT><VIEW_NAME>payor_view</VIEW_NAME><Text>create view [dbo].[payor_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>payor_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>payor_view</VIEW_NAME><Text>policy_person.policy_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>payor_view</VIEW_NAME><Text>policy_person.policy_person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>payor_view</VIEW_NAME><Text>policy_person.relationship_to_insured,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>payor_view</VIEW_NAME><Text>policy_person.role_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>payor_view</VIEW_NAME><Text>policy_person.sub_role_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>payor_view</VIEW_NAME><Text>person.*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>payor_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>payor_view</VIEW_NAME><Text>person,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>payor_view</VIEW_NAME><Text>policy_person
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>payor_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>payor_view</VIEW_NAME><Text>policy_person.person_id = person.person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>payor_view</VIEW_NAME><Text>policy_person.role_id = 'payor'
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>payor_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Add"><VIEW_NAME>person_role_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>1637118085</Check_Sum><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>CREATE VIEW person_role_view
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>AS
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>  SELECT person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>         role_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>         'policy_person' AS table_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>  FROM   policy_person
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>  UNION ALL
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>  SELECT person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>         role_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>         'coverage_person' AS table_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>  FROM   coverage_person
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>  WHERE  role_id &lt;&gt; 'insured'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>  UNION ALL
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>  SELECT person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>         'benefitParty'            AS role_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>         'coverage_benefits_party' AS table_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>  FROM   coverage_benefits_party
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>  UNION ALL
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>  SELECT person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>         'company' AS role_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>         'company' AS table_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>  FROM   company
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>  UNION ALL
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>  SELECT person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>         'user'     AS role_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>         'aus_user' AS table_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>  FROM   aus_user
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>  UNION ALL
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>  SELECT person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>         'agent'   AS role_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>         'agent'   AS table_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>  FROM   agent
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>  UNION ALL
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>  SELECT person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>         'agency'  AS role_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>         'agency'  AS table_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>  FROM   agency
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>  UNION ALL
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>  SELECT person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>         'tpa'     AS role_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>         'tpa'     AS table_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>person_role_view</VIEW_NAME><Text>  FROM   tpa
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>person_role_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>policy_proxy_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-906040246</Check_Sum><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>create view [dbo].[policy_proxy_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.company_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.policy_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.policy_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.priority,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.policy_status_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.policy_status_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.case_group_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.association_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	ppi.applicant_status as applicant_status_short,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	ppi.applicant_status_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	(select top 1 pc.plan_code_id from policy_coverage pc, coverage_person cp where pc.policy_coverage_id = cp.policy_coverage_id and cp.person_id = pp.person_id) as primary_plan_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	ppi.is_member,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	ppi.adverse_history,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	pp.policy_person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	pp.relationship_to_insured,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	i.party_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	i.title as insured_title,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	i.last_name as insured_last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	i.middle_name as insured_middle_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	i.first_name as insured_first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	i.suffix as insured_suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	i.tax_id as insured_tax_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	i.birth_date as insured_birth_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	i.client_id as insured_client_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	ppi.primary_insured_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	ppi.underwriting_amount as insured_underwriting_amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.application_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.application_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.added_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.receive_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	ppi.reopen_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.underwriter_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	(select login_id from aus_user where user_id = p.underwriter_id) as underwriter_login_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.team_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.service_associate_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	(select login_id from aus_user where user_id = p.service_associate_id) as service_associate_login_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.tpa_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.cedent_policy_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.cedent_company_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.cedent_underwriter_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.cedent_contact_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.cedent_date_sent,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.international_or_domestic,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.idb_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.currency_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.employer_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.alternate_case_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.source_info,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	p.distributor_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	policy p,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	policy_person pp,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	policy_person_insured ppi,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	person i
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	pp.policy_id = p.policy_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	ppi.policy_person_id = pp.policy_person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	i.person_id = pp.person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view</VIEW_NAME><Text>	ppi.primary_reference_id is null
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-1930020120</Check_Sum><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>CREATE view [dbo].[portal_policy_proxy_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	p.policy_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	p.policy_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	p.policy_status_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	p.policy_status_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	(select top 1 a.agent_number from agent a, policy_person pp2 where pp2.policy_id = p.policy_id and pp2.person_id = a.person_id and a.agent_number is not null) as agent_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	(select top 1 a.agency_number from agency a, policy_person pp2 where pp2.policy_id = p.policy_id and pp2.person_id = a.person_id and a.agency_number is not null) as agency_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	(select top 1 rtrim(b.last_name) from person b, agent c where b.person_id = c.person_id and c.agent_number in (select a.agent_number from agent a, policy_person pp2 where pp2.policy_id = p.policy_id and pp2.person_id = a.person_id and a.agent_number is n</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>ot null)) as agent_lastname,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	(select top 1 rtrim(b.first_name) from person b, agent c where b.person_id = c.person_id and c.agent_number in (select a.agent_number from agent a, policy_person pp2 where pp2.policy_id = p.policy_id and pp2.person_id = a.person_id and a.agent_number is </Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>not null)) as agent_firstname,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	pp.policy_person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	rtrim(i.last_name) as insured_last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>        rtrim(i.first_name) as insured_first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	p.receive_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	p.application_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	p.underwriter_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	(select rtrim (u.last_name) from aus_user au, person u where au.user_id = p.underwriter_id and au.person_id = u.person_id) as underwriter_last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	(select rtrim (u.first_name) from aus_user au, person u where au.user_id = p.underwriter_id and au.person_id = u.person_id) as underwriter_first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	(select count(*) from insured_requirement ir, tl_requirement  tr
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	 where pp.policy_person_id = ir.policy_person_id and (ir.requirement_code = tr.requirement_code and tr.requirement_category = 0))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	 as pi_req,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	(select count(*) from insured_requirement ir, tl_requirement  tr
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	 where pp.policy_person_id = ir.policy_person_id and (ir.closed_disposition is null or ir.closed_disposition &lt;&gt; 'S' )
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	 and (ir.requirement_code = tr.requirement_code and tr.requirement_category = 0))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	 as open_pi_req
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	policy p,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	policy_person pp,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	policy_person_insured ppi,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	person i
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	pp.policy_id = p.policy_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	ppi.policy_person_id = pp.policy_person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME><Text>	i.person_id = pp.person_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>portal_policy_proxy_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>product_assoc_gnum_lob_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-1721869972</Check_Sum><CREATE_TEXT><VIEW_NAME>product_assoc_gnum_lob_view</VIEW_NAME><Text>CREATE view [dbo].[product_assoc_gnum_lob_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>product_assoc_gnum_lob_view</VIEW_NAME><Text>select distinct 'product_' + rtrim(ap.association_code) + '_' + rtrim(ap.g_number) + '_' + lb.line_of_business_code as code_type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>product_assoc_gnum_lob_view</VIEW_NAME><Text>	pc.plan_code_id as code_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>product_assoc_gnum_lob_view</VIEW_NAME><Text>	rtrim( pc.plan_code_id ) + '-' + pc.description as code_value, 1 as active_flag
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>product_assoc_gnum_lob_view</VIEW_NAME><Text>	from association_plan ap, line_of_business lb, tl_plan_code pc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>product_assoc_gnum_lob_view</VIEW_NAME><Text>	where (ap.expiration_date &gt; CURRENT_TIMESTAMP or ap.expiration_date is NULL) and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>product_assoc_gnum_lob_view</VIEW_NAME><Text>	pc.plan_code_id = ap.plan_code_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>product_assoc_gnum_lob_view</VIEW_NAME><Text>	lb.line_of_business_code = pc.line_of_business_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>product_assoc_gnum_lob_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>product_assoc_gnum_lob_view</VIEW_NAME><Text>select distinct 'product_' + rtrim(ap.association_code) + '_' + rtrim(ap.g_number) + '_' + lb.line_of_business_code as code_type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>product_assoc_gnum_lob_view</VIEW_NAME><Text>	pc.plan_code_id as code_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>product_assoc_gnum_lob_view</VIEW_NAME><Text>	rtrim( pc.plan_code_id ) + '-' + 'Inactive' + pc.description as code_value, 0 as active_flag
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>product_assoc_gnum_lob_view</VIEW_NAME><Text>	from association_plan ap, line_of_business lb, tl_plan_code pc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>product_assoc_gnum_lob_view</VIEW_NAME><Text>	where (ap.expiration_date &gt; CURRENT_TIMESTAMP or ap.expiration_date is NULL) and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>product_assoc_gnum_lob_view</VIEW_NAME><Text>	pc.plan_code_id = ap.plan_code_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>product_assoc_gnum_lob_view</VIEW_NAME><Text>	lb.line_of_business_code = pc.line_of_business_code
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>product_assoc_gnum_lob_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>1920291352</Check_Sum><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>create view [dbo].[recent_cases_proxy_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	p.company_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	p.policy_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	p.policy_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	p.priority,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	p.policy_status_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	p.policy_status_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	p.case_group_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	p.association_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	ppi.applicant_status as applicant_status_short,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	ppi.applicant_status_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	(select top 1 pc.plan_code_id from policy_coverage pc, coverage_person cp where pc.policy_coverage_id = cp.policy_coverage_id and cp.person_id = pp.person_id) as primary_plan_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	ppi.is_member,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	ppi.adverse_history,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	pp.policy_person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	pp.relationship_to_insured,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	i.title as insured_title,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	i.last_name as insured_last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	i.middle_name as insured_middle_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	i.first_name as insured_first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	i.suffix as insured_suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	i.tax_id as insured_tax_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	i.birth_date as insured_birth_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	i.client_id as insured_client_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	ppi.underwriting_amount as insured_underwriting_amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	p.application_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	p.application_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	p.added_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	p.receive_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	p.underwriter_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	(select login_id from aus_user where user_id = p.underwriter_id) as underwriter_login_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	p.team_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	p.service_associate_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	(select login_id from aus_user where user_id = p.service_associate_id) as service_associate_login_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	p.tpa_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	rc.user_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	(select login_id from aus_user where user_id = rc.user_id) as user_login_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	rc.date_time as access_date_time,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	p.cedent_policy_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	p.cedent_company_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	p.cedent_underwriter_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	p.cedent_contact_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	p.cedent_date_sent,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	p.international_or_domestic,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	p.idb_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	p.currency_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	policy p,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	policy_person pp,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	policy_person_insured ppi,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	person i,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	aus_user_recent_files rc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	pp.policy_id = p.policy_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	ppi.policy_person_id = pp.policy_person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	i.person_id = pp.person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME><Text>	rc.policy_id = p.policy_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>recent_cases_proxy_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>recommended_requirements_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>1534560231</Check_Sum><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>create view [dbo].[recommended_requirements_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	te_rulebook.rulebook_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	tr_plan_code_rulebook.plan_code_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	ta_face_amount_band.face_amount_from,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	ta_face_amount_band.face_amount_to,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	ta_age_band.age_from,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	ta_age_band.age_to,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	tl_requirement.*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	te_rulebook,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	tr_plan_code_rulebook,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	ta_face_amount_band,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	ta_age_band,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	tr_age_face_amount_requirement,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	tr_group_requirements,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	tl_requirement,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	tl_requirement_group
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	tr_plan_code_rulebook.rulebook_id = te_rulebook.rulebook_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	ta_face_amount_band.rulebook_id = te_rulebook.rulebook_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	ta_age_band.rulebook_id = te_rulebook.rulebook_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	tr_age_face_amount_requirement.rulebook_id = te_rulebook.rulebook_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	tr_age_face_amount_requirement.age_band_seq_no = ta_age_band.age_band_seq_no and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	tr_age_face_amount_requirement.face_amount_seq_no = ta_face_amount_band.face_amount_seq_no and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	tr_group_requirements.requirement_group_id = tr_age_face_amount_requirement.requirement_group_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	tl_requirement.requirement_code = tr_group_requirements.requirement_code and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	tl_requirement_group.requirement_group_id = tr_group_requirements.requirement_group_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	tl_requirement_group.is_active is not null and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	tl_requirement_group.is_active &lt;&gt; 0 and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	tl_requirement.is_active is not null and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>recommended_requirements_view</VIEW_NAME><Text>	tl_requirement.is_active &lt;&gt; 0
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>recommended_requirements_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>referral_proxy_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>1788394327</Check_Sum><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>create view [dbo].[referral_proxy_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>	n.note_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>	n.diary_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>	p.policy_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>	p.policy_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>	i.title as insured_title,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>	i.last_name as insured_last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>	i.middle_name as insured_middle_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>	i.first_name as insured_first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>	i.suffix as insured_suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>	n.author as author_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>	(select login_id from aus_user where user_id = n.author) as author_login_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>	n.refer_to_user_id as referred_to_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>	(select login_id from aus_user where user_id = n.refer_to_user_id) as referred_to_login_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>	n.topic,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>	p.team_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>	notes n,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>	policy_person pp,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>	policy p,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>	person i
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>	n.refer_to_user_id &gt; 0 and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>	n.policy_person_id = pp.policy_person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>	pp.policy_id = p.policy_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>	pp.person_id = i.person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>referral_proxy_view</VIEW_NAME><Text>	n.diary_date is not null
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>referral_proxy_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Add"><VIEW_NAME>req_exists_operand_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>523441691</Check_Sum><CREATE_TEXT><VIEW_NAME>req_exists_operand_view</VIEW_NAME><Text>create view [dbo].[req_exists_operand_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>req_exists_operand_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>req_exists_operand_view</VIEW_NAME><Text>	'getInsured.requirementExists(' + rtrim(requirement_code) + ')' as name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>req_exists_operand_view</VIEW_NAME><Text>	'bool' as type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>req_exists_operand_view</VIEW_NAME><Text>	'Requirement ' + rtrim(requirement_code) + ' Exists' as display,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>req_exists_operand_view</VIEW_NAME><Text>	'Determines if ' + rtrim(requirement_name) + ' Requirement exists on the Applicant.'  as description,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>req_exists_operand_view</VIEW_NAME><Text>	'Boolean' as value_list
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>req_exists_operand_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>req_exists_operand_view</VIEW_NAME><Text>	tl_requirement
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>req_exists_operand_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Add"><VIEW_NAME>req_status_operand_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>2099025632</Check_Sum><CREATE_TEXT><VIEW_NAME>req_status_operand_view</VIEW_NAME><Text>create view [dbo].[req_status_operand_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>req_status_operand_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>req_status_operand_view</VIEW_NAME><Text>	'getInsured.requirementStatus(' + rtrim(requirement_code) + ')' as name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>req_status_operand_view</VIEW_NAME><Text>	'string' as type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>req_status_operand_view</VIEW_NAME><Text>	'Requirement ' + rtrim(requirement_code) + ' Status' as display,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>req_status_operand_view</VIEW_NAME><Text>	'Status of ' + rtrim(requirement_name) + ' Requirement on the Applicant.'  as description,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>req_status_operand_view</VIEW_NAME><Text>	'RequirementStatus' as value_list
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>req_status_operand_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>req_status_operand_view</VIEW_NAME><Text>	tl_requirement
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>req_status_operand_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>requirement_group_requirements</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-1338862093</Check_Sum><CREATE_TEXT><VIEW_NAME>requirement_group_requirements</VIEW_NAME><Text>create view [dbo].[requirement_group_requirements] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_group_requirements</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_group_requirements</VIEW_NAME><Text>	tl_requirement_group.requirement_group_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_group_requirements</VIEW_NAME><Text>	tl_requirement_group.name as requirement_group_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_group_requirements</VIEW_NAME><Text>	tl_requirement.*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_group_requirements</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_group_requirements</VIEW_NAME><Text>	tl_requirement,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_group_requirements</VIEW_NAME><Text>	tr_group_requirements,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_group_requirements</VIEW_NAME><Text>	tl_requirement_group
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_group_requirements</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_group_requirements</VIEW_NAME><Text>	tr_group_requirements.requirement_code = tl_requirement.requirement_code and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_group_requirements</VIEW_NAME><Text>	tl_requirement_group.requirement_group_id = tr_group_requirements.requirement_group_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_group_requirements</VIEW_NAME><Text>	tl_requirement.is_active is not null and tl_requirement.is_active &lt;&gt; 0 and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_group_requirements</VIEW_NAME><Text>	tl_requirement_group.is_active is not null and tl_requirement_group.is_active &lt;&gt; 0
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>requirement_group_requirements</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>requirement_open_operand_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>2025807916</Check_Sum><CREATE_TEXT><VIEW_NAME>requirement_open_operand_view</VIEW_NAME><Text>create view [dbo].[requirement_open_operand_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_open_operand_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_open_operand_view</VIEW_NAME><Text>	'getInsured.requirementIsOpen(' + rtrim(requirement_code) + ')' as name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_open_operand_view</VIEW_NAME><Text>	'bool' as type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_open_operand_view</VIEW_NAME><Text>	'Requirement ' + rtrim(requirement_code) + ' Is Open' as display,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_open_operand_view</VIEW_NAME><Text>	'Determines if ' + rtrim(requirement_name) + ' Requirement is open on the Applicant.'  as description,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_open_operand_view</VIEW_NAME><Text>	'Boolean' as value_list
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_open_operand_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_open_operand_view</VIEW_NAME><Text>	tl_requirement
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>requirement_open_operand_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>requirement_proxy_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>436911882</Check_Sum><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>create view [dbo].[requirement_proxy_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	t.requirement_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	t.alt_lang,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	t.alt_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	t.default_ordered_by,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	ir.requirement_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	t.requirement_type_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	t.requirement_category,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	ir.followup_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	ir.closed_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	ir.received_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	ir.ordered_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	ir.ordered_by,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	p.policy_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	p.policy_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	p.policy_status_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	p.underwriter_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	(select login_id from aus_user where user_id = p.underwriter_id) as underwriter_login_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	p.service_associate_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	(select login_id from aus_user where user_id = p.service_associate_id) as service_associate_login_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	ir.insured_requirement_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	ir.closed_disposition,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	ir.requirement_information_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	ir.last_followup_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	ir.provider,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	ir.evidence_type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	pp.policy_person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	i.party_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	i.title as insured_title,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	i.last_name as insured_last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	i.middle_name as insured_middle_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	i.first_name as insured_first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	i.suffix as insured_suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	i.birth_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	i.tax_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	p.team_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	ir.manual_or_automatic_entry,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	ir.new_business_until_closed,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	ir.provider_order_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	ir.create_comment
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	policy p,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	policy_person pp,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	person i,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	insured_requirement ir,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	tl_requirement t
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	p.policy_id = pp.policy_id AND
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	pp.person_id = i.person_id AND
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	pp.policy_person_id = ir.policy_person_id AND
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_proxy_view</VIEW_NAME><Text>	ir.requirement_code = t.requirement_code
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>requirement_proxy_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>requirement_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-1671414204</Check_Sum><CREATE_TEXT><VIEW_NAME>requirement_view</VIEW_NAME><Text>create view [dbo].[requirement_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_view</VIEW_NAME><Text>insured_requirement.*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>requirement_view</VIEW_NAME><Text>insured_requirement
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>requirement_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>review_message_proxy_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>664888935</Check_Sum><CREATE_TEXT><VIEW_NAME>review_message_proxy_view</VIEW_NAME><Text>create view [dbo].[review_message_proxy_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>review_message_proxy_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>review_message_proxy_view</VIEW_NAME><Text>	p.policy_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>review_message_proxy_view</VIEW_NAME><Text>	p.policy_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>review_message_proxy_view</VIEW_NAME><Text>	rtrim(per.last_name) as applicant_last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>review_message_proxy_view</VIEW_NAME><Text>	rtrim(per.first_name) as applicant_first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>review_message_proxy_view</VIEW_NAME><Text>	rm.message_type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>review_message_proxy_view</VIEW_NAME><Text>	rm.origin_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>review_message_proxy_view</VIEW_NAME><Text>	SUBSTRING(rm.message, 1, 50) as review_message_text,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>review_message_proxy_view</VIEW_NAME><Text>	p.service_associate_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>review_message_proxy_view</VIEW_NAME><Text>	(select login_id from aus_user where user_id = p.service_associate_id) as service_associate_login_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>review_message_proxy_view</VIEW_NAME><Text>	rm.user_role_type
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>review_message_proxy_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>review_message_proxy_view</VIEW_NAME><Text>	review_message rm,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>review_message_proxy_view</VIEW_NAME><Text>	policy p,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>review_message_proxy_view</VIEW_NAME><Text>	policy_person pp,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>review_message_proxy_view</VIEW_NAME><Text>	person per
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>review_message_proxy_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>review_message_proxy_view</VIEW_NAME><Text>	p.policy_id = rm.policy_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>review_message_proxy_view</VIEW_NAME><Text>	pp.policy_person_id = rm.policy_person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>review_message_proxy_view</VIEW_NAME><Text>	pp.person_id = per.person_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>review_message_proxy_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>role_privilege_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>665024619</Check_Sum><CREATE_TEXT><VIEW_NAME>role_privilege_view</VIEW_NAME><Text>create view [dbo].[role_privilege_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>role_privilege_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>role_privilege_view</VIEW_NAME><Text>	arp.role_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>role_privilege_view</VIEW_NAME><Text>	arp.restriction_level,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>role_privilege_view</VIEW_NAME><Text>	asp.privilege_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>role_privilege_view</VIEW_NAME><Text>	asp.name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>role_privilege_view</VIEW_NAME><Text>	asp.description,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>role_privilege_view</VIEW_NAME><Text>	asp.is_active,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>role_privilege_view</VIEW_NAME><Text>	asp.subsystem_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>role_privilege_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>role_privilege_view</VIEW_NAME><Text>	aus_role_privilege arp,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>role_privilege_view</VIEW_NAME><Text>	aus_security_privilege asp
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>role_privilege_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>role_privilege_view</VIEW_NAME><Text>	arp.privilege_id = asp.privilege_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>role_privilege_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>role_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>885115434</Check_Sum><CREATE_TEXT><VIEW_NAME>role_view</VIEW_NAME><Text>create view [dbo].[role_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>role_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>role_view</VIEW_NAME><Text>	aus_security_roles.*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>role_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>role_view</VIEW_NAME><Text>	aus_security_roles
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>role_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>role_view</VIEW_NAME><Text>	role_id &gt; -1 and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>role_view</VIEW_NAME><Text>	(deleted is null or deleted = 0)
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>role_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>rulebook_item_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>916182778</Check_Sum><CREATE_TEXT><VIEW_NAME>rulebook_item_view</VIEW_NAME><Text>create view [dbo].[rulebook_item_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_item_view</VIEW_NAME><Text>	select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_item_view</VIEW_NAME><Text>		'' as plan_code_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_item_view</VIEW_NAME><Text>		rb.*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_item_view</VIEW_NAME><Text>	from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_item_view</VIEW_NAME><Text>		te_rulebook rb
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>rulebook_item_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>rulebook_proxy_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>643013923</Check_Sum><CREATE_TEXT><VIEW_NAME>rulebook_proxy_view</VIEW_NAME><Text>create view [dbo].[rulebook_proxy_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_proxy_view</VIEW_NAME><Text>	select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_proxy_view</VIEW_NAME><Text>		rb.association_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_proxy_view</VIEW_NAME><Text>		rb.effective_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_proxy_view</VIEW_NAME><Text>		rb.rulebook_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_proxy_view</VIEW_NAME><Text>		rb.rulebook_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_proxy_view</VIEW_NAME><Text>		rb.description,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_proxy_view</VIEW_NAME><Text>		rb.is_active,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_proxy_view</VIEW_NAME><Text>		rb.added_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_proxy_view</VIEW_NAME><Text>		rb.added_by,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_proxy_view</VIEW_NAME><Text>		rb.update_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_proxy_view</VIEW_NAME><Text>		rb.updated_by,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_proxy_view</VIEW_NAME><Text>		rb.type
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_proxy_view</VIEW_NAME><Text>	from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_proxy_view</VIEW_NAME><Text>		te_rulebook rb
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>rulebook_proxy_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>rulebook_rate_class</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-125091871</Check_Sum><CREATE_TEXT><VIEW_NAME>rulebook_rate_class</VIEW_NAME><Text>create view [dbo].[rulebook_rate_class] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_rate_class</VIEW_NAME><Text>select distinct
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_rate_class</VIEW_NAME><Text>	'smok_rate_class_' + rb.rulebook_name as code_type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_rate_class</VIEW_NAME><Text>	cast(rc.sequence_no as char(30)) as code_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_rate_class</VIEW_NAME><Text>	rc.description as code_value,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_rate_class</VIEW_NAME><Text>	'' as external_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_rate_class</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_rate_class</VIEW_NAME><Text>	te_rulebook rb,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_rate_class</VIEW_NAME><Text>	ta_rate_table_class rc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_rate_class</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_rate_class</VIEW_NAME><Text>	rb.rulebook_id = rc.rulebook_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_rate_class</VIEW_NAME><Text>	rc.smoking_class is not null and rc.smoking_class &lt;&gt; '0'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_rate_class</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_rate_class</VIEW_NAME><Text>select distinct
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_rate_class</VIEW_NAME><Text>	'rate_class_' + rb.rulebook_name as code_type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_rate_class</VIEW_NAME><Text>	cast(rc.sequence_no as char(30)) as code_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_rate_class</VIEW_NAME><Text>	rc.description as code_value,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_rate_class</VIEW_NAME><Text>	'' as external_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_rate_class</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_rate_class</VIEW_NAME><Text>	te_rulebook rb,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_rate_class</VIEW_NAME><Text>	ta_rate_table_class rc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_rate_class</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_rate_class</VIEW_NAME><Text>	rb.rulebook_id = rc.rulebook_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_rate_class</VIEW_NAME><Text>	(rc.smoking_class is null or rc.smoking_class = '0')
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>rulebook_rate_class</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>rulebook_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>1266089530</Check_Sum><CREATE_TEXT><VIEW_NAME>rulebook_view</VIEW_NAME><Text>create view [dbo].[rulebook_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_view</VIEW_NAME><Text>	select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_view</VIEW_NAME><Text>		pc.plan_code_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_view</VIEW_NAME><Text>		rb.*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_view</VIEW_NAME><Text>	from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_view</VIEW_NAME><Text>		te_rulebook rb,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_view</VIEW_NAME><Text>		tr_plan_code_rulebook pc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_view</VIEW_NAME><Text>	where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>rulebook_view</VIEW_NAME><Text>		rb.rulebook_id = pc.rulebook_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>rulebook_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>service_associate_alpha_range</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-157498543</Check_Sum><CREATE_TEXT><VIEW_NAME>service_associate_alpha_range</VIEW_NAME><Text>create view [dbo].[service_associate_alpha_range] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>service_associate_alpha_range</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>service_associate_alpha_range</VIEW_NAME><Text>  from_string,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>service_associate_alpha_range</VIEW_NAME><Text>  to_string as up_to_string,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>service_associate_alpha_range</VIEW_NAME><Text>  service_associate_login_id as item_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>service_associate_alpha_range</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>service_associate_alpha_range</VIEW_NAME><Text>  service_associate_range
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>service_associate_alpha_range</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>team_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-648560815</Check_Sum><CREATE_TEXT><VIEW_NAME>team_view</VIEW_NAME><Text>create view [dbo].[team_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>team_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>team_view</VIEW_NAME><Text>	team.*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>team_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>team_view</VIEW_NAME><Text>	team
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>team_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>team_view</VIEW_NAME><Text>	(deleted is null or deleted = 0)
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>team_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>teams_users_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-1010617762</Check_Sum><CREATE_TEXT><VIEW_NAME>teams_users_view</VIEW_NAME><Text>create view [dbo].[teams_users_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>teams_users_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>teams_users_view</VIEW_NAME><Text>	tr_user_team.team_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>teams_users_view</VIEW_NAME><Text>	tr_user_team.auto_assign,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>teams_users_view</VIEW_NAME><Text>	aus_user.*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>teams_users_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>teams_users_view</VIEW_NAME><Text>	tr_user_team,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>teams_users_view</VIEW_NAME><Text>	aus_user
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>teams_users_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>teams_users_view</VIEW_NAME><Text>	tr_user_team.user_id = aus_user.user_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>teams_users_view</VIEW_NAME><Text>	(aus_user.deleted is null or aus_user.deleted = 0)
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>teams_users_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>tpa_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>409215712</Check_Sum><CREATE_TEXT><VIEW_NAME>tpa_view</VIEW_NAME><Text>create view [dbo].[tpa_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>tpa_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>tpa_view</VIEW_NAME><Text>	t.tpa_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>tpa_view</VIEW_NAME><Text>	t.tpa_short_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>tpa_view</VIEW_NAME><Text>	t.contact_last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>tpa_view</VIEW_NAME><Text>	t.contact_first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>tpa_view</VIEW_NAME><Text>	t.auto_closure_days,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>tpa_view</VIEW_NAME><Text>	t.expiration_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>tpa_view</VIEW_NAME><Text>	p.*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>tpa_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>tpa_view</VIEW_NAME><Text>	tpa t,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>tpa_view</VIEW_NAME><Text>	person p
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>tpa_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>tpa_view</VIEW_NAME><Text>	t.person_id = p.person_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>tpa_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Add"><VIEW_NAME>unchecked_rvw_msg_count</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>693163322</Check_Sum><CREATE_TEXT><VIEW_NAME>unchecked_rvw_msg_count</VIEW_NAME><Text>create view [dbo].[unchecked_rvw_msg_count] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>unchecked_rvw_msg_count</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>unchecked_rvw_msg_count</VIEW_NAME><Text> rm.policy_person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>unchecked_rvw_msg_count</VIEW_NAME><Text> count(rm.review_message_id) as unchk_rvw_count
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>unchecked_rvw_msg_count</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>unchecked_rvw_msg_count</VIEW_NAME><Text> review_message rm
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>unchecked_rvw_msg_count</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>unchecked_rvw_msg_count</VIEW_NAME><Text> rm.message_type = '0' and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>unchecked_rvw_msg_count</VIEW_NAME><Text> (rm.user_role_type is null or rm.user_role_type != 'CM')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>unchecked_rvw_msg_count</VIEW_NAME><Text>group by
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>unchecked_rvw_msg_count</VIEW_NAME><Text> rm.policy_person_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>unchecked_rvw_msg_count</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>user_teams_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>360130922</Check_Sum><CREATE_TEXT><VIEW_NAME>user_teams_view</VIEW_NAME><Text>create view [dbo].[user_teams_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>user_teams_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>user_teams_view</VIEW_NAME><Text>	tr_user_team.user_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>user_teams_view</VIEW_NAME><Text>	tr_user_team.auto_assign,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>user_teams_view</VIEW_NAME><Text>	team.*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>user_teams_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>user_teams_view</VIEW_NAME><Text>	tr_user_team,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>user_teams_view</VIEW_NAME><Text>	team
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>user_teams_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>user_teams_view</VIEW_NAME><Text>	tr_user_team.team_id = team.team_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>user_teams_view</VIEW_NAME><Text>	(team.deleted is null or team.deleted = 0)
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>user_teams_view</VIEW_NAME></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>data_mart_association_plan</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-1736738814</Check_Sum><CREATE_TEXT><VIEW_NAME>data_mart_association_plan</VIEW_NAME><Text>create view [dbo].[data_mart_association_plan] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_association_plan</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_association_plan</VIEW_NAME><Text>a.name as association_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_association_plan</VIEW_NAME><Text>ap.association_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_association_plan</VIEW_NAME><Text>ap.plan_code_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_association_plan</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_association_plan</VIEW_NAME><Text>tv.tpa_short_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_association_plan</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_association_plan</VIEW_NAME><Text>tpa_view tv
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_association_plan</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_association_plan</VIEW_NAME><Text>tv.tpa_code = ap.tpa_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_association_plan</VIEW_NAME><Text>) as tpa_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_association_plan</VIEW_NAME><Text>ap.g_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_association_plan</VIEW_NAME><Text>ap.mortality_max,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_association_plan</VIEW_NAME><Text>ap.auto_approve_requires_member,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_association_plan</VIEW_NAME><Text>ap.underwrite_child,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_association_plan</VIEW_NAME><Text>ap.spouse_can_exceed_member,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_association_plan</VIEW_NAME><Text>ap.allow_jet_issue,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_association_plan</VIEW_NAME><Text>ap.billing_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_association_plan</VIEW_NAME><Text>ap.expiration_date
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_association_plan</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_association_plan</VIEW_NAME><Text>association_plan ap,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_association_plan</VIEW_NAME><Text>association a
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_association_plan</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_association_plan</VIEW_NAME><Text>a.association_code = ap.association_code
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>data_mart_association_plan</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>tpa_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_association_plan</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>tpa_short_name</column></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>1976547232</Check_Sum><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>create view [dbo].[reviewer_proxy_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	p.company_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	p.policy_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	p.policy_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	p.priority,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	p.policy_status_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	p.policy_status_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	p.case_group_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	p.association_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	ppi.applicant_status as applicant_status_short,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	ppi.applicant_status_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	(select top 1 pc.plan_code_id from policy_coverage pc, coverage_person cp where pc.policy_coverage_id = cp.policy_coverage_id and cp.person_id = pp.person_id) as primary_plan_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	ppi.is_member,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	ppi.adverse_history,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	pp.policy_person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	pp.relationship_to_insured,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	i.title as insured_title,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	i.last_name as insured_last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	i.middle_name as insured_middle_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	i.first_name as insured_first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	i.suffix as insured_suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	i.tax_id as insured_tax_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	i.birth_date as insured_birth_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	i.client_id as insured_client_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	ppi.underwriting_amount as insured_underwriting_amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	p.application_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	p.application_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	p.added_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	p.receive_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	ppi.reopen_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	(select top 1 final_action_date from insured_coverages_view where policy_person_id = ppi.policy_person_id) as final_disposition_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	p.underwriter_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	(select login_id from aus_user where user_id = p.underwriter_id) as underwriter_login_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	p.team_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	p.service_associate_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	(select login_id from aus_user where user_id = p.service_associate_id) as service_associate_login_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	p.tpa_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	p.cedent_policy_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	p.cedent_company_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	p.cedent_underwriter_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	p.cedent_contact_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	p.cedent_date_sent,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	p.international_or_domestic,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	p.idb_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	p.currency_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	policy p,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	policy_person pp,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	policy_person_insured ppi,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	person i,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	team t
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	pp.policy_id = p.policy_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	ppi.policy_person_id = pp.policy_person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	i.person_id = pp.person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	ppi.primary_reference_id is null and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><Text>	ppi.policy_person_id in (select policy_person_id from insured_requirement where policy_person_id = ppi.policy_person_id and requirement_code = 'TBRVWD' and (closed_disposition is null or closed_disposition in ('O', 'OR', 'H')))
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>reviewer_proxy_view</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>final_action_date</column></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>codes_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-1782640794</Check_Sum><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>CREATE view [dbo].[codes_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'mib_country' as code_type, country_id as code_id, country_name as code_value, mib_country as external_code from tl_country
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select lang.code_value as language_code, 'mib_country' as code_type, country_id as code_id, alt_country_name as code_value, mib_country as external_code from tl_country, (select * from tl_code where code_type = 'System' and code_id = 'AltLanguage') lang w</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>here lang.code_value is not null and alt_country_name is not null and rtrim(alt_country_name) &lt;&gt; ''
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'policy_type' as code_type, rtrim(tpa_code) + '_' + rtrim(line_of_business_code) + '_' + rtrim(g_number) as code_id, policy_type as code_value, '' as external_code from billing_code where g_number is not null
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'policy_type' AS code_type, rtrim(tpa_code) + '_' + rtrim(line_of_business_code) as code_id, policy_type as code_value, '' as external_code from billing_code where g_number is null
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'billing_code' as code_type, rtrim(tpa_code) + '_' + rtrim(line_of_business_code) + '_' + rtrim(g_number) as code_id, us_billing_code as code_value, non_us_billing_code as external_code from billing_code where g_number is </Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>not null and g_number != ''
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'billing_code' AS code_type, rtrim(tpa_code) + '_' + rtrim(line_of_business_code) as code_id, us_billing_code as code_value, non_us_billing_code as external_code from billing_code where g_number is null or g_number = ''
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'country' as code_type, country_id as code_id, country_name as code_value, country_code as external_code from tl_country
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select lang.code_value as language_code, 'country' as code_type, country_id as code_id, alt_country_name as code_value, country_code as external_code from tl_country, (select * from tl_code where code_type = 'System' and code_id = 'AltLanguage') lang wher</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>e lang.code_value is not null and alt_country_name is not null and rtrim(alt_country_name) &lt;&gt; ''
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'lab_request' as code_type, request_code as code_id, description as code_value, '' as external_code from tl_lab_request
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'lab_specimen' as code_type, lab_specimin_id as code_id, description as code_value, '' as external_code from tl_lab_specimen
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'plan_code' as code_type, plan_code_id as code_id, plan_code_id + ' - ' + description as code_value, line_of_business_code as external_code from tl_plan_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select alt_lang as language_code, 'plan_code' as code_type, plan_code_id as code_id, plan_code_id + ' - ' + alt_description as code_value, line_of_business_code as external_code from tl_plan_code where alt_lang is not null and alt_lang &lt;&gt; 'en-us'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'requirement_group' as code_type, cast(requirement_group_id as char(30)) as code_id, name as code_value, '' as external_code from tl_requirement_group
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'subaccount' as code_type, subaccount_code as code_id, full_name as code_value, '' as external_code from tl_subaccount
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'country_state' as code_type, country_state_id as code_id, state_name as code_value, state_code as external_code from tl_country_state
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select lang.code_value as language_code, 'country_state' as code_type, country_state_id as code_id, alt_state_name as code_value, state_code as external_code from tl_country_state, (select * from tl_code where code_type = 'System' and code_id = 'AltLangua</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>ge') lang where lang.code_value is not null and alt_state_name is not null and rtrim(alt_state_name) &lt;&gt; ''
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'country_state_usa' as code_type, country_state_id as code_id, state_name as code_value, state_code as external_code from tl_country_state where country_id = 'USA'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select lang.code_value as language_code, 'country_state_usa' as code_type, country_state_id as code_id, alt_state_name as code_value, state_code as external_code from tl_country_state, (select * from tl_code where code_type = 'System' and code_id = 'AltLa</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>nguage') lang where lang.code_value is not null and country_id = 'USA' and alt_state_name is not null and rtrim(alt_state_name) &lt;&gt; ''
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'country_state_canada' as code_type, country_state_id as code_id, state_name as code_value, state_code as external_code from tl_country_state where country_id = 'CANADA'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select lang.code_value as language_code, 'country_state_canada' as code_type, country_state_id as code_id, alt_state_name as code_value, state_code as external_code from tl_country_state, (select * from tl_code where code_type = 'System' and code_id = 'Al</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>tLanguage') lang where lang.code_value is not null and country_id = 'CANADA' and alt_state_name is not null and rtrim(alt_state_name) &lt;&gt; ''
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'ansi_code' as code_type, horl_code as code_id, description as code_value, ansi as external_code from tl_ansi_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'agency' as code_type, cast(agency.person_id as char(30)) as code_id, person.last_name as code_value, agency.agency_number as external_code from agency, person where person.person_id = agency.person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'agent' as code_type, cast(agent.person_id as char(30)) as code_id, person.last_name as code_value, agent.agent_number as external_code from agent, person where person.person_id = agent.person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'agent_name' as code_type, (rtrim(agent_number) + '_' + cast(person.person_id as char(12))) as code_id, person.last_name as code_value, person.first_name as external_code from agent, person where agent_number is not null a</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>nd person.person_id = agent.person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'company' as code_type, company.company_code as code_id, company.company_code  + ' - ' + person.last_name as code_value, person.tax_id as external_code from company, person where person.person_id = company.person_id and (c</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>lass_type is null or class_type = 'Carrier')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'company_name' as code_type, person.last_name as code_id, company.company_code  + ' - ' + person.last_name as code_value, person.tax_id as external_code from company, person where person.person_id = company.person_id and (</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>class_type is null or class_type = 'Carrier')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select alt_lang as language_code, 'requirement' as code_type, requirement_code as code_id, alt_name as code_value, external_requirement_code as external_code from tl_requirement where alt_lang is not null
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'requirement' as code_type, requirement_code as code_id, requirement_name as code_value, external_requirement_code as external_code from tl_requirement where alt_lang is null or alt_lang &lt;&gt; 'en-us'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select alt_lang as language_code, 'post_issue_requirement' as code_type, requirement_code as code_id, alt_name as code_value, external_requirement_code as external_code from tl_requirement where alt_lang is not null and requirement_category = 0
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'post_issue_requirement' as code_type, requirement_code as code_id, requirement_name as code_value, external_requirement_code as external_code from tl_requirement where (alt_lang is null or alt_lang &lt;&gt; 'en-us') and require</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>ment_category = 0
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, code_type as code_type, cast(code_id as char(30)) as code_id, code_value as code_value, external_code as external_code from tl_acord_codes where code_type &lt;&gt; 'AUS Gender Type' and code_type &lt;&gt; 'ALFA Gender Type'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, code_type as code_type, cast(external_code as char(30)) as code_id, code_value as code_value, cast(code_id as char(30)) as external_code from tl_acord_codes where code_type = 'AUS Gender Type'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>SELECT     'en-us' AS language_code, code_type, CAST(external_code AS char(30)) AS code_id, code_value, CAST(code_id AS char(30)) AS external_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>FROM         tl_acord_codes
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>WHERE     (code_type = 'ALFA Gender Type')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select distinct 'en-us' as language_code, 'final_action_disposition' as code_type, reason_status as code_id, reason_status as code_value, reason_status as external_code from tl_final_action_reason
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select distinct lang.code_value as language_code, 'final_action_disposition' as code_type, reason_status as code_id, reason_status as code_value, reason_status as external_code from tl_final_action_reason, (select * from tl_code where code_type = 'System'</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text> and code_id = 'AltLanguage') lang where (lang.code_value is not null and lang.code_value &lt;&gt; '')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select distinct 'en-us' as language_code, lower( 'final_action_reason_' + (select code_id from tl_code where code_type = 'applicant_status' and code_value = reason_status) ) as code_type, reason_text as code_id, reason_text as code_value, reason_code as e</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>xternal_code from tl_final_action_reason where (select code_id from tl_code where code_type = 'applicant_status' and code_value = reason_status) is not null
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select distinct lang.code_value as language_code, lower( 'final_action_reason_' + (select code_id from tl_code where code_type = 'applicant_status' and code_value = reason_status) ) as code_type, reason_text as code_id, alt_reason_text as code_value, reas</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>on_code as external_code from tl_final_action_reason, (select * from tl_code where code_type = 'System' and code_id = 'AltLanguage') lang where lang.code_value is not null and alt_reason_text is not null and (select code_id from tl_code where code_type = </Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>'applicant_status' and code_value = reason_status) is not null
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select distinct 'en-us' as language_code, lower( 'final_action_reason_' + reason_status ) as code_type, reason_text as code_id, reason_text as code_value, reason_code as external_code from tl_final_action_reason
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select distinct lang.code_value as language_code, lower( 'final_action_reason_' + reason_status ) as code_type, reason_text as code_id, alt_reason_text as code_value, reason_code as external_code from tl_final_action_reason, (select * from tl_code where c</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>ode_type = 'System' and code_id = 'AltLanguage') lang where lang.code_value is not null and alt_reason_text is not null
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select distinct 'en-us' as language_code, 'final_action_reason' as code_type, reason_text as code_id, reason_status as code_value, reason_code as external_code from tl_final_action_reason where reason_code is not null
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select distinct lang.code_value as language_code, 'final_action_reason' as code_type, alt_reason_text  as code_id, reason_status as code_value, reason_code as external_code from tl_final_action_reason, (select * from tl_code where code_type = 'System' and</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text> code_id = 'AltLanguage') lang where lang.code_value is not null and reason_code is not null and alt_reason_text is not null
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select language_code, code_type, code_id, code_value, external_code from tl_code where code_type &lt;&gt; 'CaseOne'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select language_code, code_type, upper(code_id), code_value, external_code from tl_code where code_type = 'CaseOne'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'tpa' as code_type, t.tpa_code as code_id, p.last_name as code_value, cast(p.person_id as char(30)) as external_code from tpa t, person p where t.person_id = p.person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'active_tpa' as code_type, t.tpa_code as code_id, p.last_name as code_value, cast(p.person_id as char(30)) as external_code from tpa t, person p
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>where t.person_id = p.person_id and (t.expiration_date &gt; CURRENT_TIMESTAMP or t.expiration_date is NULL)
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'line_of_business' as code_type, line_of_business_code as code_id, name as code_value, line_of_business_code as external_code from line_of_business
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'association_code' as code_type, association_code as code_id, association_code as code_value, cast(expiration_date as char(30)) as external_code from association
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'active_association' as code_type, association_code as code_id, name as code_value, cast(expiration_date as char(30)) as external_code from association
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>where (expiration_date &gt; CURRENT_TIMESTAMP or expiration_date is NULL) and association_code not in (select c.company_code from company c, person p where c.person_id = p.person_id and (p.class_type = 'ASSN' or p.class_type = 'GRP'))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'active_association' as code_type, c.company_code as code_id, p.last_name as code_value, p.field1 as external_code from company c, person p
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>where c.person_id = p.person_id and (p.field1 &gt; CURRENT_TIMESTAMP or p.field1 is NULL) and (p.class_type = 'ASSN' or p.class_type = 'GRP')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'association' as code_type, association_code as code_id, name as code_value, cast(expiration_date as char(30)) as external_code from association
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>where association_code not in (select c.company_code from company c, person p where c.person_id = p.person_id and (p.class_type = 'ASSN' or p.class_type = 'GRP'))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'association' as code_type, c.company_code as code_id, p.last_name as code_value, p.field1 as external_code from company c, person p
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>where c.person_id = p.person_id and (p.class_type = 'ASSN' or p.class_type = 'GRP')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select distinct 'en-us' as language_code, 'active_association_' + lower(ap.tpa_code) as code_type, a.association_code as code_id, a.name as code_value, cast(a.expiration_date as char(30)) as external_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>from association a, association_plan ap where (a.expiration_date &gt; CURRENT_TIMESTAMP or a.expiration_date is NULL) and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>a.association_code = ap.association_code and a.association_code not in (select c.company_code from company c, person p where c.person_id = p.person_id and (p.class_type = 'ASSN' or p.class_type = 'GRP'))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select distinct 'en-us' as language_code, 'active_association_' + lower(ap.tpa_code) as code_type, c.company_code as code_id, p.last_name as code_value, p.field1 as external_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>from company c, person p, association_plan ap where (p.field1 &gt; CURRENT_TIMESTAMP or p.field1 is NULL) and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>c.company_code = ap.association_code and c.person_id = p.person_id and (p.class_type = 'ASSN' or p.class_type = 'GRP')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select distinct 'en-us' as language_code, 'association_' + lower(ap.tpa_code) as code_type, a.association_code as code_id, a.name as code_value, cast(a.expiration_date as char(30)) as external_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>from association a, association_plan ap where a.association_code = ap.association_code and a.association_code not in (select c.company_code from company c, person p where c.person_id = p.person_id and (p.class_type = 'ASSN' or p.class_type = 'GRP'))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select distinct 'en-us' as language_code, 'association_' + lower(ap.tpa_code) as code_type, c.company_code as code_id, p.last_name as code_value, p.field1 as external_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>from company c, person p, association_plan ap where c.company_code = ap.association_code and c.person_id = p.person_id and (p.class_type = 'ASSN' or p.class_type = 'GRP')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select distinct 'en-us' as language_code, 'active_plan_code_' + lower(ap.association_code) as code_type, pc.plan_code_id as code_id, rtrim(pc.plan_code_id) + ' - ' + pc.description as code_value, pc.line_of_business_code as external_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>from tl_plan_code pc, association_plan ap where (ap.expiration_date &gt; CURRENT_TIMESTAMP or ap.expiration_date is NULL) and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>pc.plan_code_id = ap.plan_code_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select distinct 'en-us' as language_code, 'plan_code_' + lower(ap.association_code) as code_type, pc.plan_code_id as code_id, rtrim(pc.plan_code_id) + ' - ' + pc.description as code_value, pc.line_of_business_code as external_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>from tl_plan_code pc, association_plan ap where pc.plan_code_id = ap.plan_code_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select distinct 'en-us' as language_code, 'active_plan_gnum_' + lower(ap.association_code) as code_type, rtrim(pc.plan_code_id) + '_' + ap.g_number as code_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>rtrim(pc.plan_code_id) + '/' + rtrim(ap.g_number) + ' - ' + pc.description as code_value, pc.plan_code_id as external_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>from tl_plan_code pc, association_plan ap where (ap.expiration_date &gt; CURRENT_TIMESTAMP or
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>ap.expiration_date is NULL) and pc.plan_code_id = ap.plan_code_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select distinct 'en-us' as language_code, 'plan_gnum_' + lower(ap.association_code) as code_type, rtrim(pc.plan_code_id) + '_' + ap.g_number as code_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>rtrim(pc.plan_code_id) + '/' + rtrim(ap.g_number) + ' - ' + pc.description as code_value, pc.line_of_business_code as external_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>from tl_plan_code pc, association_plan ap where pc.plan_code_id = ap.plan_code_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select distinct 'en-us' as language_code, 'active_plan_gnum_' + lower(rtrim(lb.line_of_business_code) + '_' + ap.association_code) as code_type, rtrim(pc.plan_code_id) + '_' + ap.g_number as code_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>rtrim(pc.plan_code_id) + '/' + rtrim(ap.g_number) + ' - ' + pc.description as code_value, pc.line_of_business_code as external_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>from line_of_business lb, tl_plan_code pc, association_plan ap where (ap.expiration_date &gt; CURRENT_TIMESTAMP or
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>ap.expiration_date is NULL) and pc.plan_code_id = ap.plan_code_id and lb.line_of_business_code = pc.line_of_business_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select distinct 'en-us' as language_code, 'plan_gnum_' + lower(rtrim(lb.line_of_business_code) + '_' + ap.association_code) as code_type, rtrim(pc.plan_code_id) + '_' + ap.g_number as code_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>rtrim(pc.plan_code_id) + '/' + rtrim(ap.g_number) + ' - ' + pc.description as code_value, pc.line_of_business_code as external_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>from line_of_business lb, tl_plan_code pc, association_plan ap where pc.plan_code_id = ap.plan_code_id and lb.line_of_business_code = pc.line_of_business_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select distinct 'en-us' as language_code, 'active_plan_gnum_' +  lower(rtrim(ltrim(ap.association_code))) + '_' +  lower(rtrim(lb.line_of_business_code) ) as code_type, rtrim(pc.plan_code_id) + '_' + ap.g_number as code_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>rtrim(pc.plan_code_id) + '/' + rtrim(ap.g_number) + ' - ' + pc.description as code_value, pc.plan_code_id as external_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>from line_of_business lb, tl_plan_code pc, association_plan ap where (ap.expiration_date &gt; CURRENT_TIMESTAMP or
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>ap.expiration_date is NULL) and pc.plan_code_id = ap.plan_code_id and lb.line_of_business_code = pc.line_of_business_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'lifesuite_version' as code_type, 'version' as code_id, lifesuite_version as code_value, '' as external_code from lifesuite_version
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'impairment_restriction' as code_type, impairment_restriction_code as code_id, impairment_text as code_value, '' as external_code from impairment_restriction
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select lang.code_value as language_code, 'impairment_restriction' as code_type, impairment_restriction_code as code_id, alt_impairment_text as code_value, '' as external_code from impairment_restriction, (select * from tl_code where code_type = 'System' </Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>and code_id = 'AltLanguage') lang where lang.code_value is not null and alt_impairment_text is not null and rtrim(alt_impairment_text) &lt;&gt; ''
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'provider' as code_type, rtrim(provider) + '_' + rtrim(evidence_type) as code_id, us_vendor as code_value, non_us_vendor as external_code from provider
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select distinct 'en-us' as language_code, 'g_number' as code_type, g_number as code_id, g_number as code_value, '' as external_code from association_plan
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select distinct 'en-us' as language_code, 'active_product_' + lower(rtrim(ap.association_code) + '_' + rtrim(ap.g_number) + '_' + lb.line_of_business_code) as code_type, pc.plan_code_id as code_id, rtrim( pc.plan_code_id ) + '-' + pc.description as code_v</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>alue, '' as external_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>from association_plan ap, line_of_business lb, tl_plan_code pc where (ap.expiration_date &gt; CURRENT_TIMESTAMP or ap.expiration_date is NULL) and pc.plan_code_id = ap.plan_code_id and lb.line_of_business_code = pc.line_of_business_code and ap.g_number is no</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>t null
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select distinct 'en-us' as language_code, 'active_product_' + lower(rtrim(ap.association_code) + '__' + lb.line_of_business_code) as code_type, pc.plan_code_id as code_id, rtrim( pc.plan_code_id ) + '-' + pc.description as code_value, '' as external_code</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text></Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>from association_plan ap, line_of_business lb, tl_plan_code pc where (ap.expiration_date &gt; CURRENT_TIMESTAMP or ap.expiration_date is NULL) and pc.plan_code_id = ap.plan_code_id and lb.line_of_business_code = pc.line_of_business_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'agency_number' as code_type, agency.agency_number as code_id, rtrim(agency.agency_number) + ' - ' + rtrim(person.last_name) as code_value, '' as external_code from agency, person where person.person_id = agency.person_id</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text></Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'Answer Set ' + rtrim(tl_answer_set_answers.answer_set_name) as code_type, rtrim(cast(tl_answer_set_answers.sequence_number as char(30))) as code_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>rtrim(tl_answer_set_answers.answer_text) as code_value, rtrim(tl_answer_set_answers.alt_answer_text) as external_code from tl_answer_set_answers
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'rulebook' as code_type, cast(rulebook_id as char(30)) as code_id, rulebook_name, description as external_code from rulebook_proxy_view where type is null or type = 0
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, lower(code_type), code_id, code_value, external_code from rulebook_rate_class
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'source_partner_codes' as code_type, external_code as code_id, code_id as code_value, '' as external_code from tl_code where code_type = 'source_info_codes' and external_code is not null and rtrim(external_code) &lt;&gt; ''
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'CedentCompany' as code_type, company_code as code_id, last_name as code_value, '' as external_code from company c, person p where c.person_id = p.person_id and p.class_type = 'CedentCompany'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'CedentUnderwriter_' + lower(company_code) as code_type, cast(p2.person_id as char(30)) as code_id, rtrim (p2.last_name) + ',' + rtrim (p2.first_name) as code_value, '' as external_code from company c, person p, party_rela</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>tion pr, person p2 where c.person_id = p.person_id and p.class_type = 'CedentCompany' and p.person_id = pr.parent_id and pr.person_id = p2.person_id and p2.class_type = 'CedentUnderwriter'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'CedentContact_' + lower(company_code) as code_type, cast(p2.person_id as char(30)) as code_id, rtrim (p2.last_name) + ',' + rtrim (p2.first_name) as code_value, '' as external_code from company c, person p, party_relation</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text> pr, person p2 where c.person_id = p.person_id and p.class_type = 'CedentCompany' and p.person_id = pr.parent_id and pr.person_id = p2.person_id and p2.class_type = 'CedentContact'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'Reinsurer' as code_type, company_code as code_id, last_name as code_value, '' as external_code from company c, person p where c.person_id = p.person_id and p.class_type = 'Reinsurer'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'active_retro_company_ob' as code_type, company_code as code_id, last_name as code_value, '' as external_code from company c, person p where c.person_id = p.person_id and p.class_type = 'RetroOBCompany'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'active_retro_company_retro' as code_type, company_code as code_id, last_name as code_value, '' as external_code from company c, person p where c.person_id = p.person_id and p.class_type = 'RetroCompany'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'cedent_fax' as code_type, company_code as code_id, area_code + prefix + ph.suffix as code_value, extension as external_code from company c, person p, person_phone ph where c.person_id = p.person_id and p.person_id = ph.pe</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>rson_id and p.class_type = 'CedentCompany' and lower(ph.phone_type_code) = 'fax'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'coverage_indicator' as code_type, indicator_code as code_id, description as code_value, external_code from tl_coverage_indicator_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'address_type' as code_type, address_type_code as code_id, external_code as code_value, external_code from tl_address_type
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'benefit_type' as code_type, cast(benefit_id as char(30)) as code_id, name as code_value, '' as external_code from tl_benefit_type
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'reinsurance_vendor' as code_type, reinsurance_vendor_code as code_id, name as code_value, external_code from reinsurance_vendor
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'coverage_type' as code_type, coverage_type as code_id, description as code_value, external_code from tl_coverage_type
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'death_benefit_option' as code_type, death_benefit_option_code as code_id, external_code as code_value, external_code from tl_death_benefit_option
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'death_benefit_option_description' as code_type, death_benefit_option_code as code_id, description as code_value, '' as external_code from tl_death_benefit_option_desc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'extended_property' as code_type, property_name as code_id, description as code_value, '' as external_code from tl_extended_property
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'language' as code_type, language_code as code_id, description as code_value, external_code from tl_language
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'marital_status' as code_type, marital_status_code as code_id, description as code_value, external_code from tl_marital_status
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'person_type' as code_type, person_type_id as code_id, description as code_value, '' as external_code from tl_person_type
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'policy_status' as code_type, short_code as code_id, policy_status_code as code_value, '' as external_code from tl_policy_status
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'requirement_type' as code_type, requirement_type_id as code_id, description as code_value, '' as external_code from tl_requirement_type
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'tax_type' as code_type, tax_type_id as code_id, description as code_value, '' as external_code from tl_tax_type
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'tobacco_type' as code_type, tobacco_type_id as code_id, external_code as code_value, external_code from tl_tobacco_type
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'tobacco_use' as code_type, tobacco_use_id as code_id, external_code as code_value, external_code from tl_tobacco_use
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'address_type_description' as code_type, address_type_code as code_id, description as code_value, '' as external_code from tl_address_type_description
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'beneficiary_type' as code_type, beneficiary_type as code_id, description as code_value, '' as external_code from tl_beneficiary_type_desc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'benefit_type_description' as code_type, cast(benefit_id as char(30)) as code_id, description as code_value, '' as external_code from tl_benefit_type_description
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'note_type' as code_type, note_type as code_id, description as code_value, '' as external_code from tl_note_type_description
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'phone_type' as code_type, phone_type_code as code_id, description as code_value, '' as external_code from tl_phone_type_description
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'policy_role' as code_type, code as code_id, description as code_value, '' as external_code from tl_policy_role_description
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'purpose_of_coverage' as code_type, purpose_of_coverage_id as code_id, description as code_value, '' as external_code from tl_purpose_of_coverage_desc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'tobacco_type_description' as code_type, tobacco_type_id as code_id, description as code_value, '' as external_code from tl_tobacco_type_description
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'tobacco_use_description' as code_type, tobacco_use_id as code_id, description as code_value, '' as external_code from tl_tobacco_use_description
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'family_history_relationship' as code_type, famhist_relationship_code as code_id, famhist_relationship_code as code_value, famhist_relationship_code as external_code from tl_family_history_relationship
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'occupation' as code_type, occupation as code_id, occupation as code_value, occupation_code as external_code from occupation
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'source_info_codes' as code_type, source_info as code_id, source_description as code_value, partner_id as external_code from tl_source_info
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'distributor_codes' as code_type, distributor_code as code_id, distributor_description as code_value, '' as external_code from tl_distributor_codes
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'source_partner_codes' as code_type, partner_id as code_id, source_info as code_value, '' as external_code from tl_source_info where partner_id is not null and rtrim(partner_id) &lt;&gt; ''
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'PurposeOfCoverage' as code_type, description as code_id, purpose_of_coverage_id as code_value, '' as external_code from tl_purpose_of_coverage_desc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'policy_status' as code_type, short_code as code_id, policy_status_code as code_value, '' as external_code from tl_policy_status
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'PolicyStatus' as code_type, policy_status_code as code_id, description as code_value, '' as external_code from tl_policy_status_description
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select distinct 'en-us' as language_code, 'table_rating_reason' as code_type, reason_text as code_id, reason_text as code_value, reason_code as external_code from tl_final_action_reason where reason_status = 'Table Rating'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select distinct lang.code_value as language_code, 'table_rating_reason' as code_type, reason_text as code_id, alt_reason_text as code_value, reason_code as external_code from tl_final_action_reason, (select * from tl_code where code_type = 'System' and co</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>de_id = 'AltLanguage') lang where reason_status = 'Table Rating'and lang.code_value is not null and alt_reason_text is not null
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'tpa_name' as code_type, t.tpa_code as code_id, p.last_name as code_value, t.tpa_short_name as external_code from tpa t, person p where t.person_id = p.person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'active_aus_users' as code_type, cast(aus_user.user_id as char(30)) as code_id, rtrim(person.last_name) + ', ' + rtrim(person.first_name) as code_value, rtrim(aus_user.login_id) as external_code from aus_user, person where</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text> aus_user.is_active&lt;&gt;0 and aus_user.person_id = person.person_id and (aus_user.deleted is null or aus_user.deleted = 0)
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'aus_users' as code_type, cast(aus_user.user_id as char(30)) as code_id, rtrim(person.last_name) + ', ' + rtrim(person.first_name) as code_value, rtrim(aus_user.login_id) as external_code from aus_user, person where  aus_u</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>ser.person_id = person.person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'aus_users_basic' as code_type, cast(aus_user.user_id as char(30)) as code_id, rtrim(person.last_name) + ', ' + rtrim(person.first_name) as code_value, rtrim(aus_user.login_id) as external_code from aus_user, person where </Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>aus_user.is_active&lt;&gt;0 and aus_user.person_id = person.person_id and (aus_user.deleted is null or aus_user.deleted = 0) and (aus_user.is_agent is null or aus_user.is_agent = 0) and (aus_user.is_agency is null or aus_user.is_agency = 0)
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'active_underwriter' as code_type, cast(aus_user.user_id as char(30)) as code_id, rtrim(person.last_name) + ', ' + rtrim(person.first_name) as code_value, rtrim(aus_user.login_id) as external_code from aus_user, person whe</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>re aus_user.is_underwriter&lt;&gt;0 and aus_user.is_active&lt;&gt;0 and aus_user.person_id = person.person_id and (aus_user.deleted is null or aus_user.deleted = 0)
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'underwriter' as code_type, cast(aus_user.user_id as char(30)) as code_id, rtrim(person.last_name) + ', ' + rtrim(person.first_name) + ' (D)' as code_value, rtrim(aus_user.login_id) as external_code from aus_user, person w</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>here aus_user.is_underwriter&lt;&gt;0 and aus_user.person_id = person.person_id and (aus_user.deleted is not null and aus_user.deleted &lt;&gt; 0)
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'underwriter' as code_type, cast(aus_user.user_id as char(30)) as code_id, rtrim(person.last_name) + ', ' + rtrim(person.first_name) + ' (I)' as code_value, rtrim(aus_user.login_id) as external_code from aus_user, person w</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>here aus_user.is_underwriter&lt;&gt;0 and aus_user.person_id = person.person_id and (aus_user.deleted is null or aus_user.deleted = 0) and (aus_user.is_active is null or aus_user.is_active = 0)
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'underwriter' as code_type, cast(aus_user.user_id as char(30)) as code_id, rtrim(person.last_name) + ', ' + rtrim(person.first_name) as code_value, rtrim(aus_user.login_id) as external_code from aus_user, person where aus_</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>user.is_underwriter&lt;&gt;0 and aus_user.person_id = person.person_id and (aus_user.deleted is null or aus_user.deleted = 0) and (aus_user.is_active is not null and aus_user.is_active &lt;&gt; 0)
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'active_service_associate' as code_type, cast(aus_user.user_id as char(30)) as code_id, rtrim(person.last_name) + ', ' + rtrim(person.first_name) as code_value,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>rtrim(aus_user.login_id) as external_code from aus_user, person where (aus_user.is_active is not null and aus_user.is_active &lt;&gt; 0) and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>(aus_user.is_service_associate is not null and aus_user.is_service_associate &lt;&gt; 0) and aus_user.person_id = person.person_id and (aus_user.deleted is null or aus_user.deleted = 0)
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'service_associate' as code_type, cast(aus_user.user_id as char(30)) as code_id, rtrim(person.last_name) + ', ' + rtrim(person.first_name) + ' (D)' as code_value,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>rtrim(aus_user.login_id) as external_code from aus_user, person where (aus_user.is_service_associate is not null and aus_user.is_service_associate &lt;&gt; 0) and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>aus_user.person_id = person.person_id and (aus_user.deleted is not null and aus_user.deleted &lt;&gt; 0)
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'service_associate' as code_type, cast(aus_user.user_id as char(30)) as code_id, rtrim(person.last_name) + ', ' + rtrim(person.first_name) + ' (I)' as code_value,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>rtrim(aus_user.login_id) as external_code from aus_user, person where (aus_user.is_service_associate is not null and aus_user.is_service_associate &lt;&gt; 0) and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>aus_user.person_id = person.person_id and (aus_user.deleted is null or aus_user.deleted = 0) and (aus_user.is_active is null or aus_user.is_active = 0)
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'service_associate' as code_type, cast(aus_user.user_id as char(30)) as code_id, rtrim(person.last_name) + ', ' + rtrim(person.first_name) as code_value,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>rtrim(aus_user.login_id) as external_code from aus_user, person where (aus_user.is_service_associate is not null and aus_user.is_service_associate &lt;&gt; 0) and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>aus_user.person_id = person.person_id and (aus_user.deleted is null or aus_user.deleted = 0) and (aus_user.is_active is not null and aus_user.is_active &lt;&gt; 0)
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'underwriter_and_service_associate' as code_type, cast(aus_user.user_id as char(30)) as code_id, rtrim(person.last_name) + ', ' + rtrim(person.first_name) as code_value,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>rtrim(aus_user.login_id) as external_code from aus_user, person where ((aus_user.is_service_associate is not null and aus_user.is_service_associate &lt;&gt; 0) or
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>(aus_user.is_underwriter is not null and aus_user.is_underwriter &lt;&gt; 0)) and aus_user.person_id = person.person_id and (aus_user.deleted is null or aus_user.deleted = 0)
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'active_team' as code_type, cast(team_id as char(30)) as code_id, team_name as code_value, '' as external_code from team where (is_active is not null and is_active &lt;&gt; 0)
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'team' as code_type, cast(team_id as char(30)) as code_id, rtrim(team_name) + ' (D)' as code_value, '' as external_code from team where (deleted is not null and deleted &lt;&gt; 0)
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'team' as code_type, cast(team_id as char(30)) as code_id, rtrim(team_name) + ' (I)' as code_value, '' as external_code from team where (deleted is null or deleted = 0) and (is_active is null or is_active = 0)
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'team' as code_type, cast(team_id as char(30)) as code_id, rtrim(team_name) as code_value, '' as external_code from team where (deleted is null or deleted = 0) and (is_active is not null and is_active &lt;&gt; 0)
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select language_code, 'benefit_' + lower(rtrim(ltrim(plan_code_id))) as code_type, cast(benefit_id as char(30)) as code_id, name as code_value, '' as external_code from plan_benefit where g_number is null
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select language_code, 'benefit_' + lower(rtrim(ltrim(plan_code_id))) + '_' + lower(rtrim(ltrim(g_number))) as code_type, cast(benefit_id as char(30)) as code_id, name as code_value, '' as external_code from plan_benefit where g_number is not null
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select language_code, 'benefitperiod_' + lower(rtrim(ltrim(plan_code_id))) as code_type, period_id as code_id, period as code_value, '' as external_code from benefit_period where g_number is null
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select language_code, 'benefitperiod_' + lower(rtrim(ltrim(plan_code_id))) + '_' + lower(rtrim(ltrim(g_number))) as code_type, period_id as code_id, period as code_value, '' as external_code from benefit_period where g_number is not null
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select language_code, 'eliminationperiod_' + lower(rtrim(ltrim(plan_code_id))) as code_type, period_id as code_id, period as code_value, '' as external_code from elimination_period where g_number is null
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select language_code, 'eliminationperiod_' + lower(rtrim(ltrim(plan_code_id))) + '_' + lower(rtrim(ltrim(g_number))) as code_type, period_id as code_id, period as code_value, '' as external_code from elimination_period where g_number is not null
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select language_code, 'benefit_' + lower(rtrim(ltrim(g_number))) + '_' + lower(rtrim(ltrim(plan_code_id)))  as code_type, cast(benefit_id as char(30)) as code_id, name as code_value, '' as external_code from plan_benefit where g_number is not null
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select language_code, 'benefitperiod_' +  lower(rtrim(ltrim(g_number))) + '_' + lower(rtrim(ltrim(plan_code_id)))  as code_type, period_id as code_id, period as code_value, '' as external_code from benefit_period where g_number is not null
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select language_code, 'eliminationperiod_' + lower(rtrim(ltrim(g_number))) + '_' + lower(rtrim(ltrim(plan_code_id)))  as code_type, period_id as code_id, period as code_value, '' as external_code from elimination_period where g_number is not null
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select distinct 'en-us' as language_code, 'g_number_' + lower(rtrim(association_code)) as code_type, g_number as code_id, g_number as code_value, '' as external_code from association_plan where g_number is not null
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'active_login_cm' as code_type, rtrim(aus_user.login_id) as code_id, rtrim(person.last_name) + ', ' + rtrim(person.first_name) as code_value,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>cast(aus_user.user_id as char(30)) as external_code from aus_user, person where (aus_user.deleted is null or aus_user.deleted = 0) and (aus_user.is_active is not null and aus_user.is_active &lt;&gt; 0) and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>(aus_user.is_service_associate is not null and aus_user.is_service_associate &lt;&gt; 0) and aus_user.person_id = person.person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'active_login_uw' as code_type, rtrim(aus_user.login_id) as code_id, rtrim(person.last_name) + ', ' + rtrim(person.first_name) as code_value,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>cast(aus_user.user_id as char(30)) as external_code from aus_user, person where (aus_user.deleted is null or aus_user.deleted = 0) and (aus_user.is_active is not null and aus_user.is_active &lt;&gt; 0) and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>(aus_user.is_underwriter is not null and aus_user.is_underwriter &lt;&gt; 0) and aus_user.person_id = person.person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select language_code, 'issue_request_' + code_type as code_type, code_id, code_value, external_code from tl_code where code_type in (select code_id from tl_code where language_code = 'en-us' and code_type = 'AmendmentType')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'employer' as code_type, company.company_code as code_id, person.last_name as code_value, cast(company.person_id as char(30)) as external_code from company, person where person.person_id = company.person_id and (class_type</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text> = 'Employer')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'agent_users' as code_type, cast(aus_user.user_id as char(30)) as code_id, aus_user.agent_number as code_value, rtrim(aus_user.login_id) as external_code from aus_user where aus_user.is_active&lt;&gt;0 and (aus_user.deleted is n</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>ull or aus_user.deleted = 0) and (aus_user.is_agent is not null and aus_user.is_agent &lt;&gt; 0)
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'agency_users' as code_type, cast(aus_user.user_id as char(30)) as code_id, aus_user.agency_number as code_value, rtrim(aus_user.login_id) as external_code from aus_user where aus_user.is_active&lt;&gt;0 and (aus_user.deleted is</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text> null or aus_user.deleted = 0) and (aus_user.is_agency is not null and aus_user.is_agency &lt;&gt; 0)
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select language_code, ('plan_' + rtrim(option_type) + '_' + rtrim(plan_code_id)) as code_type, cast(sequence_number as char(30)) as code_id, description as code_value, '' as external_code from tl_plan_option
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'trust' as code_type, company.company_code as code_id, person.last_name as code_value, cast(company.person_id as char(30)) as external_code from company, person where person.person_id = company.person_id and (class_type = </Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>'Trust')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text>select 'en-us' as language_code, 'ppo' as code_type, cast(company.person_id as char(30)) as code_id, person.last_name as code_value, cast(company.expiration_date as char(30)) as external_code from company, person where person.person_id = company.person_id</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>codes_view</VIEW_NAME><Text> and (class_type = 'PPO')
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>codes_view</VIEW_NAME><depname>rulebook_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>rulebook_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>codes_view</VIEW_NAME><depname>rulebook_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>rulebook_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>codes_view</VIEW_NAME><depname>rulebook_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>description</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>codes_view</VIEW_NAME><depname>rulebook_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>type</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>codes_view</VIEW_NAME><depname>rulebook_rate_class</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>code_type</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>codes_view</VIEW_NAME><depname>rulebook_rate_class</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>code_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>codes_view</VIEW_NAME><depname>rulebook_rate_class</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>code_value</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>codes_view</VIEW_NAME><depname>rulebook_rate_class</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>external_code</column></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>benefit_amount_operand_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>168873609</Check_Sum><CREATE_TEXT><VIEW_NAME>benefit_amount_operand_view</VIEW_NAME><Text>create view [dbo].[benefit_amount_operand_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_amount_operand_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_amount_operand_view</VIEW_NAME><Text>	'getBenefitAmount(' + rtrim(code_value) + ')' as name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_amount_operand_view</VIEW_NAME><Text>	'dec' as type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_amount_operand_view</VIEW_NAME><Text>	'Benefit ' + rtrim(code_value) + ' Amount' as display,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_amount_operand_view</VIEW_NAME><Text>	'The amount of the ' + rtrim(code_value) + ' Benefit on the coverage.'  as description,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_amount_operand_view</VIEW_NAME><Text>	'' as value_list
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_amount_operand_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_amount_operand_view</VIEW_NAME><Text>	codes_view
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_amount_operand_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_amount_operand_view</VIEW_NAME><Text>	code_type = 'benefit_type' and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_amount_operand_view</VIEW_NAME><Text>	language_code = 'en-us'
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>benefit_amount_operand_view</VIEW_NAME><depname>codes_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>language_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>benefit_amount_operand_view</VIEW_NAME><depname>codes_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>code_type</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>benefit_amount_operand_view</VIEW_NAME><depname>codes_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>code_value</column></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>benefit_exists_operand_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>193977208</Check_Sum><CREATE_TEXT><VIEW_NAME>benefit_exists_operand_view</VIEW_NAME><Text>create view [dbo].[benefit_exists_operand_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_exists_operand_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_exists_operand_view</VIEW_NAME><Text>	'getBenefitExists(' + rtrim(code_value) + ')' as name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_exists_operand_view</VIEW_NAME><Text>	'bool' as type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_exists_operand_view</VIEW_NAME><Text>	'Benefit ' + rtrim(code_value) + ' Exists' as display,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_exists_operand_view</VIEW_NAME><Text>	'Determines if ' + rtrim(code_value) + ' Benefit exists on the coverage.'  as description,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_exists_operand_view</VIEW_NAME><Text>	'Boolean' as value_list
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_exists_operand_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_exists_operand_view</VIEW_NAME><Text>	codes_view
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_exists_operand_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_exists_operand_view</VIEW_NAME><Text>	code_type = 'benefit_type' and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>benefit_exists_operand_view</VIEW_NAME><Text>	language_code = 'en-us'
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>benefit_exists_operand_view</VIEW_NAME><depname>codes_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>language_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>benefit_exists_operand_view</VIEW_NAME><depname>codes_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>code_type</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>benefit_exists_operand_view</VIEW_NAME><depname>codes_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>code_value</column></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>ratable_occupations_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-229768485</Check_Sum><CREATE_TEXT><VIEW_NAME>ratable_occupations_view</VIEW_NAME><Text>create view [dbo].[ratable_occupations_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ratable_occupations_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ratable_occupations_view</VIEW_NAME><Text>	code_value
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ratable_occupations_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ratable_occupations_view</VIEW_NAME><Text>	codes_view
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ratable_occupations_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ratable_occupations_view</VIEW_NAME><Text>	code_type = 'occupation' and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ratable_occupations_view</VIEW_NAME><Text>	external_code is not null and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>ratable_occupations_view</VIEW_NAME><Text>	external_code &lt;&gt; '0'
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>ratable_occupations_view</VIEW_NAME><depname>codes_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>code_type</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>ratable_occupations_view</VIEW_NAME><depname>codes_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>code_value</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>ratable_occupations_view</VIEW_NAME><depname>codes_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>external_code</column></VIEW_DEPENDS></VIEW><VIEW Action="Add"><VIEW_NAME>cases_to_issue_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>2042816550</Check_Sum><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>CREATE VIEW [dbo].[cases_to_issue_view] AS
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>SELECT p.company_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       p.policy_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       p.policy_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       p.priority,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       p.policy_status_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       p.policy_status_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       p.case_group_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       p.association_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       ppi.applicant_status        AS applicant_status_short,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       ppi.applicant_status_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       (SELECT TOP ( 1 ) pc.plan_code_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>        FROM   policy_coverage AS pc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>               INNER JOIN coverage_person AS cp
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>                 ON pc.policy_coverage_id = cp.policy_coverage_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>        WHERE  (cp.person_id = pp.person_id)) AS primary_plan_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       ppi.is_member,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       ppi.adverse_history,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       pp.policy_person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       pp.relationship_to_insured,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       i.party_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       i.title                     AS insured_title,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       i.last_name                 AS insured_last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       i.middle_name               AS insured_middle_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       i.first_name                AS insured_first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       i.suffix                    AS insured_suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       i.tax_id                    AS insured_tax_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       i.birth_date                AS insured_birth_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       i.client_id                 AS insured_client_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       ppi.primary_insured_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       ppi.underwriting_amount     AS insured_underwriting_amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       p.application_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       p.application_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       p.added_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       p.receive_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       ppi.reopen_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       p.underwriter_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       (SELECT login_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>        FROM   aus_user
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>        WHERE  (user_id = p.underwriter_id)) AS underwriter_login_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       p.team_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       p.service_associate_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       (SELECT login_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>        FROM   aus_user AS aus_user_1
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>        WHERE  (user_id = p.service_associate_id)) AS service_associate_login_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       p.tpa_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       p.cedent_policy_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       p.cedent_company_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       p.cedent_underwriter_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       p.cedent_contact_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       p.cedent_date_sent,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       p.international_or_domestic,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       p.idb_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       p.currency_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       p.employer_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       ir.open_pi_req,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>	   (SELECT unchk_rvw_count
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>        FROM   unchecked_rvw_msg_count
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>        WHERE  (policy_person_id = pp.policy_person_id)) AS uw_rm_count
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>FROM   ins_open_post_issue_req_count AS ir
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       INNER JOIN policy_person AS pp
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>         ON ir.policy_person_id = pp.policy_person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       INNER JOIN policy AS p
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>         ON pp.policy_id = p.policy_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       INNER JOIN policy_person_insured AS ppi
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>         ON pp.policy_person_id = ppi.policy_person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       INNER JOIN person AS i
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>         ON pp.person_id = i.person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>WHERE  (p.policy_status_code = 'Closed')
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>cases_to_issue_view</VIEW_NAME><Text>       AND (ppi.applicant_status = 'AP')
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>cases_to_issue_view</VIEW_NAME><depname>ins_open_post_issue_req_count</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>cases_to_issue_view</VIEW_NAME><depname>ins_open_post_issue_req_count</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>open_pi_req</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>cases_to_issue_view</VIEW_NAME><depname>unchecked_rvw_msg_count</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>cases_to_issue_view</VIEW_NAME><depname>unchecked_rvw_msg_count</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>unchk_rvw_count</column></VIEW_DEPENDS></VIEW><VIEW Action="Add"><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-1291712488</Check_Sum><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>CREATE VIEW [dbo].[policy_by_product_proxy_view]
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>AS
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>  SELECT p.company_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.policy_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.policy_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.priority,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.policy_status_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.policy_status_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.case_group_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.association_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         ppi.applicant_status        AS applicant_status_short,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         ppi.applicant_status_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         pc.plan_code_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         cpi.g_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         ppi.is_member,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         ppi.adverse_history,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         pp.policy_person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         pp.relationship_to_insured,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         i.party_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         i.title                     AS insured_title,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         i.last_name                 AS insured_last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         i.middle_name               AS insured_middle_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         i.first_name                AS insured_first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         i.suffix                    AS insured_suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         i.tax_id                    AS insured_tax_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         i.birth_date                AS insured_birth_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         i.client_id                 AS insured_client_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         ppi.underwriting_amount     AS insured_underwriting_amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.application_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.application_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.added_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.receive_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         ppi.reopen_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.last_underwrite_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.agent_signed_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.requested_issue_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         cpi.final_action_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.underwriter_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.team_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.service_associate_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.tpa_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.cedent_policy_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.cedent_company_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.cedent_underwriter_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.cedent_contact_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.cedent_date_sent,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.international_or_domestic,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.idb_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.currency_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.employer_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.alternate_case_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.source_info,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         p.distributor_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         agt.agent_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         agy.agency_number
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>  FROM   policy AS p
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         INNER JOIN policy_person AS pp
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>           ON pp.policy_id = p.policy_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         INNER JOIN policy_person_insured AS ppi
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>           ON ppi.policy_person_id = pp.policy_person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         INNER JOIN person AS i
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>           ON i.person_id = pp.person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         INNER JOIN coverage_person_insured AS cpi
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>           ON cpi.policy_person_id = ppi.policy_person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         INNER JOIN coverage_person AS cp
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>           ON cp.coverage_person_id = cpi.coverage_person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         INNER JOIN policy_coverage AS pc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>           ON pc.policy_coverage_id = cp.policy_coverage_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         LEFT OUTER JOIN agent_view AS agt
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>           ON p.policy_id = agt.policy_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>         LEFT OUTER JOIN agency_view AS agy
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><Text>           ON p.policy_id = agy.policy_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><depname>agency_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><depname>agency_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>agency_number</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><depname>agent_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>agent_number</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_by_product_proxy_view</VIEW_NAME><depname>agent_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_id</column></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>tpa_codes_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>1614476709</Check_Sum><CREATE_TEXT><VIEW_NAME>tpa_codes_view</VIEW_NAME><Text>create view [dbo].[tpa_codes_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>tpa_codes_view</VIEW_NAME><Text>select 'tpa' as code_type, tpa_code as code_id, last_name as code_value, cast(person_id as char(30)) as external_code, 1 as active_flag from tpa_view
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>tpa_codes_view</VIEW_NAME><Text>	where expiration_date &gt; CURRENT_TIMESTAMP or expiration_date is NULL
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>tpa_codes_view</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>tpa_codes_view</VIEW_NAME><Text>select 'tpa' as code_type, tpa_code as code_id, rtrim(last_name) + ' (Inactive)' as code_value, cast(person_id as char(30)) as external_code, 0 as active_flag from tpa_view
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>tpa_codes_view</VIEW_NAME><Text>	where expiration_date &lt;= CURRENT_TIMESTAMP and expiration_date is not NULL
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>tpa_codes_view</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>tpa_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>tpa_codes_view</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>expiration_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>tpa_codes_view</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>tpa_codes_view</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>last_name</column></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>data_mart_codes</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>489299296</Check_Sum><CREATE_TEXT><VIEW_NAME>data_mart_codes</VIEW_NAME><Text>create view [dbo].[data_mart_codes] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_codes</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_codes</VIEW_NAME><Text>*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_codes</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_codes</VIEW_NAME><Text>codes_view
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>data_mart_codes</VIEW_NAME><depname>codes_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>language_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_codes</VIEW_NAME><depname>codes_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>code_type</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_codes</VIEW_NAME><depname>codes_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>code_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_codes</VIEW_NAME><depname>codes_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>code_value</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_codes</VIEW_NAME><depname>codes_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>external_code</column></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>data_mart_team</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-462685586</Check_Sum><CREATE_TEXT><VIEW_NAME>data_mart_team</VIEW_NAME><Text>create view [dbo].[data_mart_team] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_team</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_team</VIEW_NAME><Text>utv.user_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_team</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_team</VIEW_NAME><Text>ltrim(rtrim(p.first_name) + ' ' + rtrim(p.last_name))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_team</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_team</VIEW_NAME><Text>aus_user u, person p
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_team</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_team</VIEW_NAME><Text>u.user_id = utv.user_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_team</VIEW_NAME><Text>p.person_id = u.person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_team</VIEW_NAME><Text>) as user_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_team</VIEW_NAME><Text>utv.auto_assign,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_team</VIEW_NAME><Text>utv.team_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_team</VIEW_NAME><Text>utv.team_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_team</VIEW_NAME><Text>utv.description,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_team</VIEW_NAME><Text>utv.is_active
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_team</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_team</VIEW_NAME><Text>user_teams_view utv
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>data_mart_team</VIEW_NAME><depname>user_teams_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>user_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_team</VIEW_NAME><depname>user_teams_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>auto_assign</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_team</VIEW_NAME><depname>user_teams_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>team_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_team</VIEW_NAME><depname>user_teams_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>team_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_team</VIEW_NAME><depname>user_teams_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>description</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_team</VIEW_NAME><depname>user_teams_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>is_active</column></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>data_mart_privilege</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-888400357</Check_Sum><CREATE_TEXT><VIEW_NAME>data_mart_privilege</VIEW_NAME><Text>create view [dbo].[data_mart_privilege] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_privilege</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_privilege</VIEW_NAME><Text>role_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_privilege</VIEW_NAME><Text>restriction_level,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_privilege</VIEW_NAME><Text>privilege_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_privilege</VIEW_NAME><Text>name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_privilege</VIEW_NAME><Text>description,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_privilege</VIEW_NAME><Text>is_active,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_privilege</VIEW_NAME><Text>subsystem_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_privilege</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_privilege</VIEW_NAME><Text>role_privilege_view
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>data_mart_privilege</VIEW_NAME><depname>role_privilege_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>role_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_privilege</VIEW_NAME><depname>role_privilege_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>restriction_level</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_privilege</VIEW_NAME><depname>role_privilege_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>privilege_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_privilege</VIEW_NAME><depname>role_privilege_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_privilege</VIEW_NAME><depname>role_privilege_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>description</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_privilege</VIEW_NAME><depname>role_privilege_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>is_active</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_privilege</VIEW_NAME><depname>role_privilege_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>subsystem_name</column></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>data_mart_requirement</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-1531719859</Check_Sum><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>create view [dbo].[data_mart_requirement] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.insured_requirement_id as requirement_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.requirement_information_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.requirement_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.added_by,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>ltrim(rtrim(ps.first_name) + ' ' + rtrim(ps.last_name))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>person ps, aus_user u
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>u.person_id = ps.person_id and u.user_id = rv.added_by
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>) as added_by_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.added_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.closed_by,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>ltrim(rtrim(ps.first_name) + ' ' + rtrim(ps.last_name))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>person ps, aus_user u
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>u.person_id = ps.person_id and u.user_id = rv.closed_by
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>) as closed_by_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.closed_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>tc.code_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>tl_code tc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>tc.language_code = 'en-us' and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>tc.code_type = 'RequirementStatus' and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>((tc.code_id = rv.closed_disposition) or
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>(rv.closed_disposition is null and tc.code_id = 'O'))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>) as closed_disposition,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>tc.code_value
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>tl_code tc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>tc.language_code = 'en-us' and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>tc.code_type = 'RequirementStatus' and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>((tc.code_id = rv.closed_disposition) or
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>(rv.closed_disposition is null and tc.code_id = 'O'))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>) as requirement_status,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.needed_for_approval_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.notify_when_satisfied,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.review_message_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.policy_person_id as applicant_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.followup_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.ordered_by,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.ordered_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.can_auto_approve,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.received_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.note_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.received_by,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>ltrim(rtrim(ps.first_name) + ' ' + rtrim(ps.last_name))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>person ps, aus_user u
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>u.person_id = ps.person_id and u.user_id = rv.received_by
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>) as received_by_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.received_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.create_comment,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.provider,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.evidence_type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.authorization_required,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.external_requirement_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.last_followup_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.manual_or_automatic_entry,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.new_business_until_closed,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.provider_order_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.schedule_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.complete_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>rv.alt_create_comment,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>tlr.requirement_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>tlr.requirement_category,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>tlr.expiration_days,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>tlr.followup_days,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>tlr.requirement_type_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>tlr.notify_when_received,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>tlr.is_active,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>tlr.updated_by,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>ltrim(rtrim(ps.first_name) + ' ' + rtrim(ps.last_name))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>person ps, aus_user u
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>u.person_id = ps.person_id and u.user_id = tlr.updated_by
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>) as updated_by_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>tlr.update_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>tlr.hippa_auth_required,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>tlr.external_followup_days,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>tlr.hierarchy,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>tlr.alt_lang,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>(select description from tl_language where language_code = tlr.alt_lang
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>select code_value from tl_code where code_type = 'language' and code_id = tlr.alt_lang) as alt_lang_description,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>tlr.alt_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>requirement_view rv,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>tl_requirement tlr
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_requirement</VIEW_NAME><Text>tlr.requirement_code = rv.requirement_code
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>insured_requirement_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>requirement_information_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>requirement_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>added_by</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>added_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>closed_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>closed_by</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>closed_disposition</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>needed_for_approval_flag</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>notify_when_satisfied</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>review_message_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>followup_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>ordered_by</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>can_auto_approve</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>received_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>note_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>received_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>received_by</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>create_comment</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>ordered_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>provider</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>evidence_type</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>authorization_required</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>external_requirement_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>last_followup_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>manual_or_automatic_entry</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>new_business_until_closed</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>provider_order_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>schedule_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>complete_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_requirement</VIEW_NAME><depname>requirement_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>alt_create_comment</column></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>data_mart_tpa</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>1515924893</Check_Sum><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>create view [dbo].[data_mart_tpa] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>tv.person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>tv.party_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>ltrim(rtrim(tv.first_name) + ' ' + rtrim(tv.last_name)) as full_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>tv.last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>tv.first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>tv.middle_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>tv.title,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>tv.suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>tv.tax_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>tv.tax_type_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>tv.birth_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>tv.sex,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>tv.email_address,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>tv.alt_email_address,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>tv.marital_status,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>tv.tpa_short_name as tpa_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>ltrim(rtrim(tv.contact_first_name) + ' ' + rtrim(tv.contact_last_name)) as contact_full_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>tv.contact_last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>tv.contact_first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>tv.auto_closure_days,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>tv.expiration_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>dma.business_city,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>dma.business_postal_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>dma.business_address_line1,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>dma.business_address_line2,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>dma.business_address_line3,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>dma.business_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>dma.business_state_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>dma.business_state_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>dma.business_country_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>dmp.work_phone_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>dmp.work_phone_area_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>dmp.work_phone_prefix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>dmp.work_phone_suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>dmp.work_phone_extension,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>dmp.work_phone_pin,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>dmp.fax_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>dmp.fax_area_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>dmp.fax_prefix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>dmp.fax_suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>dmp.fax_extension,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>dmp.fax_pin
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>tpa_view tv,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>data_mart_address dma,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>data_mart_phone dmp
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>dma.person_id = tv.person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_tpa</VIEW_NAME><Text>dmp.person_id = tv.person_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_city</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_postal_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_address_line1</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_address_line2</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_address_line3</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_country_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_state_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_state_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_country_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_country_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_area_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_prefix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_suffix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_extension</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_pin</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_country_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_area_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_prefix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_suffix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_extension</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_pin</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>tpa_short_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>contact_last_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>contact_first_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>auto_closure_days</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>expiration_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>party_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>last_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>first_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>middle_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>title</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>suffix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>tax_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>tax_type_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>birth_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>sex</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>email_address</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>marital_status</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_tpa</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>alt_email_address</column></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>data_mart_company</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-1918066219</Check_Sum><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>create view [dbo].[data_mart_company] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>cv.company_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>cv.last_name as company_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>cv.person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>cv.party_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>cv.tax_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>cv.email_address,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>cv.alt_email_address,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>cv.class_type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>cv.preferred_contact_mode,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>cv.allow_aus_approval_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>cv.correspondence_directory,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>cv.field1,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>cv.field2,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>cv.field3,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>cv.field4,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>cv.field5,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dma.business_city,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dma.business_postal_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dma.business_address_line1,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dma.business_address_line2,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dma.business_address_line3,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dma.business_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dma.business_state_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dma.business_state_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dma.business_country_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dma.billing_city,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dma.billing_postal_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dma.billing_address_line1,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dma.billing_address_line2,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dma.billing_address_line3,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dma.billing_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dma.billing_state_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dma.billing_state_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dma.billing_country_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dmp.work_phone_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dmp.work_phone_area_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dmp.work_phone_prefix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dmp.work_phone_suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dmp.work_phone_extension,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dmp.work_phone_pin,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dmp.fax_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dmp.fax_area_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dmp.fax_prefix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dmp.fax_suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dmp.fax_extension,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dmp.fax_pin
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>company_view cv,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>data_mart_address dma,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>data_mart_phone dmp
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dma.person_id = cv.person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_company</VIEW_NAME><Text>dmp.person_id = cv.person_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>company_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>company_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>party_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>company_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>last_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>company_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>tax_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>company_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>email_address</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>company_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>alt_email_address</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>company_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>preferred_contact_mode</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>company_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>class_type</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>company_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>field1</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>company_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>field2</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>company_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>field3</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>company_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>field4</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>company_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>field5</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>company_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>company_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>company_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>allow_aus_approval_flag</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>company_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>correspondence_directory</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_city</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_postal_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_address_line1</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_address_line2</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_address_line3</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_country_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_state_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_state_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_country_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>billing_city</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>billing_postal_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>billing_address_line1</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>billing_address_line2</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>billing_address_line3</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>billing_country_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>billing_state_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>billing_state_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>billing_country_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_country_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_area_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_prefix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_suffix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_extension</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_pin</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_country_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_area_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_prefix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_suffix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_extension</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_company</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_pin</column></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-977748121</Check_Sum><CREATE_TEXT><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><Text>create view [dbo].[auto_closure_proxy_view] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><Text>		*
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><Text>		policy_proxy_view
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><Text>	applicant_status_short in ('PE', 'PM', 'NB', 'FA') and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><Text>	policy_person_id in
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><Text>		(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><Text>			ir.policy_person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><Text>		 from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><Text>			insured_requirement ir
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><Text>		 where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><Text>			((ir.closed_disposition is null or
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><Text>	 		  ir.closed_disposition in('O', 'H')) and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><Text>			 ir.ordered_date is not null) or
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><Text>			ir.closed_disposition = 'OR'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><Text>	 	)
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>company_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_number</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>priority</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_status_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_status_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>case_group_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>association_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>applicant_status_short</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>applicant_status_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>primary_plan_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>is_member</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>adverse_history</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>relationship_to_insured</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>party_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>insured_title</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>insured_last_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>insured_middle_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>insured_first_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>insured_suffix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>insured_tax_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>insured_birth_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>insured_client_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>primary_insured_flag</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>insured_underwriting_amount</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>application_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>application_number</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>added_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>receive_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>reopen_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>underwriter_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>underwriter_login_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>team_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>service_associate_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>service_associate_login_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>tpa_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>cedent_policy_number</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>cedent_company_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>cedent_underwriter_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>cedent_contact_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>cedent_date_sent</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>international_or_domestic</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>idb_flag</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>currency_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>employer_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>alternate_case_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>source_info</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>auto_closure_proxy_view</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>distributor_code</column></VIEW_DEPENDS></VIEW><VIEW Action="Add"><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>2015233528</Check_Sum><CREATE_TEXT><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><Text>create view [dbo].[policy_proxy_view_uw_rm_count] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><Text>	pp.*,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><Text>	rvw.unchk_rvw_count as uw_rm_count
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><Text>	unchecked_rvw_msg_count as rvw RIGHT OUTER JOIN policy_proxy_view as pp ON (rvw.policy_person_id = pp.policy_person_id)
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>company_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_number</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>priority</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_status_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_status_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>case_group_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>association_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>applicant_status_short</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>applicant_status_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>primary_plan_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>is_member</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>adverse_history</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>relationship_to_insured</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>party_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>insured_title</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>insured_last_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>insured_middle_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>insured_first_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>insured_suffix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>insured_tax_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>insured_birth_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>insured_client_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>primary_insured_flag</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>insured_underwriting_amount</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>application_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>application_number</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>added_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>receive_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>reopen_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>underwriter_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>underwriter_login_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>team_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>service_associate_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>service_associate_login_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>tpa_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>cedent_policy_number</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>cedent_company_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>cedent_underwriter_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>cedent_contact_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>cedent_date_sent</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>international_or_domestic</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>idb_flag</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>currency_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>employer_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>alternate_case_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>source_info</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>policy_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>distributor_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>unchecked_rvw_msg_count</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>policy_proxy_view_uw_rm_count</VIEW_NAME><depname>unchecked_rvw_msg_count</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>unchk_rvw_count</column></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>data_mart_coverage</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>1707744275</Check_Sum><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>create view [dbo].[data_mart_coverage] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.policy_coverage_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.policy_id as case_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.plan_code_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>plc.description as plan_code_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>plc.line_of_business_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>lob.name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>line_of_business lob
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>lob.line_of_business_code = plc.line_of_business_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>) as line_of_business_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.death_benefit_option_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.purpose_of_coverage_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>poc.code_value
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>tl_code poc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>poc.code_type = 'purpose_of_coverage' and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>poc.code_id = icv.purpose_of_coverage_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>poc.language_code = 'en-us'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>poc.description
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>tl_purpose_of_coverage_desc poc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>poc.purpose_of_coverage_id = icv.purpose_of_coverage_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>) as purpose_of_coverage,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.coverage_type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.premium_mode,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.investment_objective,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.pref_date_of_withdrawl,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.planned_premium,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.initial_planned_premium,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.equivalent_age,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.can_take_final_action_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.dividend_option,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>div.code_value
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>tl_code div
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>div.code_type = 'Dividend Type' and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>div.code_id = icv.dividend_option and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>div.language_code = 'en-us'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>div.code_value
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>tl_acord_codes div
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>div.code_type = 'Dividend Type' and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>div.code_id = icv.dividend_option
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>) as dividend_option_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.approved_amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.policy_person_id as applicant_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.coverage_person_id as coverage_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.perm_flat_extra_amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.temp_flat_extra_amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.temp_flat_extra_period,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.flat_extra_reason,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.temp_table_rating,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.temp_table_rating_reason,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.rate_class_quoted,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.rate_class_approved,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.rate_class_issued,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.aviation_exclusion,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.perm_table_rating,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.perm_table_rating_reason,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.coverage_status,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.reason_text,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.is_smoker,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.business_ownership_percent,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.final_action_by_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>ltrim(rtrim(ps.first_name) + ' ' + rtrim(ps.last_name))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>person ps, aus_user u
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>u.person_id = ps.person_id and u.user_id = icv.final_action_by_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>) as final_action_by_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.final_action_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.final_action_note,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.elimination_days,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.payout_frequency,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.waiting_period,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.g_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.relationship_to_insured_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.web_quoted_class,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.modal_premium_amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.issued_times_standard,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.jls_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.split_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.reinsurance_amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.rated_up_age,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.issue_age,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.reinsurance_company_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>(select cpv.last_name from company_view cpv where cpv.company_code = icv.reinsurance_company_code) as reinsurance_company_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>insured_coverages_view icv,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>tl_plan_code plc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>plc.plan_code_id = icv.plan_code_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.coverage_status is not null
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.policy_coverage_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.policy_id as case_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.plan_code_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>plc.description as plan_code_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>plc.line_of_business_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>lob.name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>line_of_business lob
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>lob.line_of_business_code = plc.line_of_business_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>) as line_of_business_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.death_benefit_option_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.purpose_of_coverage_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>poc.code_value
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>tl_code poc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>poc.code_type = 'purpose_of_coverage' and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>poc.code_id = icv.purpose_of_coverage_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>poc.language_code = 'en-us'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>poc.description
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>tl_purpose_of_coverage_desc poc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>poc.purpose_of_coverage_id = icv.purpose_of_coverage_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>) as purpose_of_coverage,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.coverage_type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.premium_mode,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.investment_objective,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.pref_date_of_withdrawl,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.planned_premium,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.initial_planned_premium,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.equivalent_age,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.can_take_final_action_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.dividend_option,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>div.code_value
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>tl_code div
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>div.code_type = 'Dividend Type' and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>div.code_id = icv.dividend_option and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>div.language_code = 'en-us'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>div.code_value
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>tl_acord_codes div
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>div.code_type = 'Dividend Type' and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>div.code_id = icv.dividend_option
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>) as dividend_option_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.approved_amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.policy_person_id as applicant_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.coverage_person_id as coverage_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.perm_flat_extra_amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.temp_flat_extra_amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.temp_flat_extra_period,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.flat_extra_reason,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.temp_table_rating,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.temp_table_rating_reason,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.rate_class_quoted,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.rate_class_approved,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.rate_class_issued,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.aviation_exclusion,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.perm_table_rating,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.perm_table_rating_reason,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>'Pending' as coverage_status,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.reason_text,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.is_smoker,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.business_ownership_percent,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.final_action_by_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>ltrim(rtrim(ps.first_name) + ' ' + rtrim(ps.last_name))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>person ps, aus_user u
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>u.person_id = ps.person_id and u.user_id = icv.final_action_by_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>) as final_action_by_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.final_action_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.final_action_note,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.elimination_days,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.payout_frequency,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.waiting_period,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.g_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.relationship_to_insured_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.web_quoted_class,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.modal_premium_amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.issued_times_standard,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.jls_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.split_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.reinsurance_amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.rated_up_age,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.issue_age,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.reinsurance_company_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>(select cpv.last_name from company_view cpv where cpv.company_code = icv.reinsurance_company_code) as reinsurance_company_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>insured_coverages_view icv,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>tl_plan_code plc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>plc.plan_code_id = icv.plan_code_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_coverage</VIEW_NAME><Text>icv.coverage_status is null
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>company_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>last_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>company_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>company_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_coverage_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>plan_code_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>death_benefit_option_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>purpose_of_coverage_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>coverage_type</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>amount</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>premium_mode</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>investment_objective</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>pref_date_of_withdrawl</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>planned_premium</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>initial_planned_premium</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>equivalent_age</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>can_take_final_action_flag</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>dividend_option</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>approved_amount</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>modal_premium_amount</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>relationship_to_insured_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>coverage_person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>perm_flat_extra_amount</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>temp_flat_extra_amount</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>temp_flat_extra_period</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>flat_extra_reason</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>temp_table_rating</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>temp_table_rating_reason</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>rate_class_quoted</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>rate_class_approved</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>rate_class_issued</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>aviation_exclusion</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>perm_table_rating</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>perm_table_rating_reason</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>coverage_status</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>reason_text</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>is_smoker</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>final_action_note</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_ownership_percent</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>final_action_by_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>final_action_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>elimination_days</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>payout_frequency</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>waiting_period</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>g_number</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>web_quoted_class</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>issued_times_standard</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>jls_flag</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>split_flag</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>reinsurance_company_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>reinsurance_amount</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>rated_up_age</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_coverage</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>issue_age</column></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>data_mart_user</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-1107167717</Check_Sum><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>create view [dbo].[data_mart_user] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.party_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>ltrim(rtrim(uv.first_name) + ' ' + rtrim(uv.last_name)) as full_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.middle_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.title,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.tax_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.tax_type_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.birth_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.sex,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.email_address,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.alt_email_address,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.marital_status,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.user_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.login_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.password,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.is_active,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.preferred_language_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.level_of_authority,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.is_underwriter,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.is_service_associate,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.role_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.is_agent,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.agent_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.is_agency,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.agency_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>asr.name as role_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.restrict_to_teams,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.job_title,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.account_locked,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.account_locked_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.bad_login_attempt_count,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.last_bad_login_attempt_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.must_change_password,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>uv.last_password_change_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>dma.business_city,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>dma.business_postal_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>dma.business_address_line1,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>dma.business_address_line2,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>dma.business_address_line3,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>dma.business_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>dma.business_state_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>dma.business_state_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>dma.business_country_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>dmp.work_phone_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>dmp.work_phone_area_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>dmp.work_phone_prefix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>dmp.work_phone_suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>dmp.work_phone_extension,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>dmp.work_phone_pin,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>dmp.fax_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>dmp.fax_area_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>dmp.fax_prefix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>dmp.fax_suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>dmp.fax_extension,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>dmp.fax_pin
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>aus_user_view uv,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>aus_security_roles asr,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>data_mart_address dma,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>data_mart_phone dmp
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>asr.role_id = uv.role_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>dma.person_id = uv.person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_user</VIEW_NAME><Text>dmp.person_id = uv.person_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>party_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>last_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>first_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>middle_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>title</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>suffix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>tax_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>tax_type_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>birth_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>sex</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>preferred_language_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>email_address</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>marital_status</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>alt_email_address</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>user_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>login_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>password</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>is_active</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>level_of_authority</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>is_underwriter</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>restrict_to_teams</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>role_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>is_service_associate</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>job_title</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>account_locked</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>account_locked_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>bad_login_attempt_count</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>last_bad_login_attempt_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>must_change_password</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>last_password_change_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>is_agent</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>agent_number</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>is_agency</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>aus_user_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>agency_number</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_city</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_postal_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_address_line1</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_address_line2</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_address_line3</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_country_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_state_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_state_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_country_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_country_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_area_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_prefix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_suffix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_extension</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_pin</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_country_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_area_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_prefix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_suffix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_extension</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_user</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_pin</column></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>data_mart_party</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-1027733930</Check_Sum><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>create view [dbo].[data_mart_party] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.case_party_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.case_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.party_type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.relation,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.party_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ltrim(rtrim(ppv.first_name) + ' ' + rtrim(ppv.last_name)) as full_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.middle_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.title,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.tax_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.tax_type_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.birth_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.sex,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.email_address,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.alt_email_address,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.marital_status,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.client_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.class_type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.preferred_contact_mode,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.field1,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.field2,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.field3,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.field4,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>ppv.field5,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.residence_city,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.residence_postal_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.residence_address_line1,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.residence_address_line2,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.residence_address_line3,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.residence_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.residence_state_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.residence_state_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.residence_country_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.business_city,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.business_postal_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.business_address_line1,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.business_address_line2,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.business_address_line3,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.business_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.business_state_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.business_state_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.business_country_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.billing_city,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.billing_postal_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.billing_address_line1,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.billing_address_line2,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.billing_address_line3,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.billing_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.billing_state_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.billing_state_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.billing_country_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dmp.home_phone_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dmp.home_phone_area_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dmp.home_phone_prefix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dmp.home_phone_suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dmp.home_phone_extension,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dmp.home_phone_pin,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dmp.work_phone_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dmp.work_phone_area_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dmp.work_phone_prefix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dmp.work_phone_suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dmp.work_phone_extension,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dmp.work_phone_pin,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dmp.fax_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dmp.fax_area_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dmp.fax_prefix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dmp.fax_suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dmp.fax_extension,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dmp.fax_pin
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>party_proxy_view ppv,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>data_mart_address dma,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>data_mart_phone dmp
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dma.person_id = ppv.person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_party</VIEW_NAME><Text>dmp.person_id = ppv.person_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>residence_city</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>residence_postal_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>residence_address_line1</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>residence_address_line2</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>residence_address_line3</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>residence_country_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>residence_state_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>residence_state_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>residence_country_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_city</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_postal_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_address_line1</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_address_line2</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_address_line3</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_country_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_state_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_state_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_country_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>billing_city</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>billing_postal_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>billing_address_line1</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>billing_address_line2</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>billing_address_line3</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>billing_country_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>billing_state_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>billing_state_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>billing_country_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>home_phone_country_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>home_phone_area_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>home_phone_prefix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>home_phone_suffix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>home_phone_extension</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>home_phone_pin</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_country_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_area_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_prefix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_suffix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_extension</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_pin</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_country_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_area_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_prefix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_suffix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_extension</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_pin</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>case_party_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>case_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>party_type</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>relation</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>party_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>last_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>first_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>middle_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>title</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>suffix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>tax_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>tax_type_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>birth_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>sex</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>email_address</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>marital_status</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>client_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>alt_email_address</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>preferred_contact_mode</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>class_type</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>field1</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>field2</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>field3</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>field4</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_party</VIEW_NAME><depname>party_proxy_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>field5</column></VIEW_DEPENDS></VIEW><VIEW Action="Alter"><VIEW_NAME>data_mart_applicant</VIEW_NAME><TABLE_OWNER>dbo</TABLE_OWNER><TABLE_TYPE>VIEW</TABLE_TYPE><Check_Sum>-589655303</Check_Sum><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>create view [dbo].[data_mart_applicant] as
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.policy_id as case_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.company_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select cpv.last_name from company_view cpv where cpv.company_code = p.company_code) as company_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.policy_number as case_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.application_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.issue_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.underwriter_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ltrim(rtrim(ps.last_name) + ', ' + rtrim(ps.first_name))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>person ps, aus_user u
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>u.person_id = ps.person_id and u.user_id = p.underwriter_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as underwriter_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.team_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>tm.team_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>team tm
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>tm.team_id = p.team_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as team_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.application_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.agent_signed_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.policy_status_code as case_status,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.policy_status_date as case_status_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.receive_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.payment_mode_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>pmod.code_value
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>tl_acord_codes pmod
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>pmod.code_type = 'PaymentMode' and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>pmod.code_id = p.payment_mode_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>pmod.code_value
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>tl_acord_codes pmod
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>pmod.code_type = 'PaymentMode' and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>pmod.code_id = p.payment_mode_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as payment_mode_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.payment_method_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>pmeth.code_value
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>tl_acord_codes pmeth
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>pmeth.code_type = 'PaymentMethod' and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>pmeth.code_id = p.payment_method_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>pmeth.code_value
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>tl_acord_codes pmeth
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>pmeth.code_type = 'PaymentMethod' and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>pmeth.code_id = p.payment_method_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as payment_method_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.last_underwrite_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.allow_aus_approval,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select top 1 final_action_by_id from insured_coverages_view where policy_person_id = i.policy_person_id) as final_action_by,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ltrim(rtrim(ps.last_name) + ', ' + rtrim(ps.first_name))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>person ps, aus_user u
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>u.person_id = ps.person_id and u.user_id = (select top 1 final_action_by_id from insured_coverages_view where policy_person_id = i.policy_person_id)
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as final_action_by_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select top 1 final_action_date from insured_coverages_view where policy_person_id = i.policy_person_id) as final_action_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select top 1 final_action_note from insured_coverages_view where policy_person_id = i.policy_person_id) as final_action_note,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select top 1 reason_text from insured_coverages_view where policy_person_id = i.policy_person_id) as reason_text,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.reinsurance_indicator,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.reinsurance_vendor_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>riv.name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>reinsurance_vendor riv
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>riv.reinsurance_vendor_code = p.reinsurance_vendor_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as reinsurance_vendor_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.updated_by as case_updated_by,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ltrim(rtrim(ps.last_name) + ', ' + rtrim(ps.first_name))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>person ps, aus_user u
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>u.person_id = ps.person_id and u.user_id = p.updated_by
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as case_updated_by_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.updated_date as case_updated_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.added_by case_added_by,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ltrim(rtrim(ps.last_name) + ', ' + rtrim(ps.first_name))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>person ps, aus_user u
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>u.person_id = ps.person_id and u.user_id = p.added_by
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as case_added_by_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.added_date as case_added_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.cwa_amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.cwa_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.priority,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.bank_rounting_number as bank_routing_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.bank_account_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.credit_card_type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>credit.code_value
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>tl_acord_codes credit
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>credit.code_type = 'Credit Card Type' and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>credit.code_id = p.credit_card_type
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>credit.code_value
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>tl_acord_codes credit
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>credit.code_type = 'Credit Card Type' and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>credit.code_id = p.credit_card_type
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as credit_card_type_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.credit_card_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.credit_card_expiration_year,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.credit_card_expiration_month,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.list_bill_location,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.list_bill_employee_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.bill_day,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.marketing_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.mode_premium,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.requested_issue_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.case_group_id as case_family_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>value
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>object_property
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>object_id = p.policy_id and name = 'TPAFamilyId'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as tpa_family_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>value
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>object_property
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>object_id = i.policy_person_id and name = 'CurrentEpsilonKey'
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as current_epsilon_dbkey,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.service_associate_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ltrim(rtrim(ps.last_name) + ', ' + rtrim(ps.first_name))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>person ps, aus_user u
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>u.person_id = ps.person_id and u.user_id = p.service_associate_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as service_associate_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.association_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>assoc.name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>association assoc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>assoc.association_code = p.association_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as association_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>tv.tpa_short_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>tpa_view tv
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>tv.tpa_code = p.tpa_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as tpa_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ltrim(rtrim(tv.last_name))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>tpa_view tv
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>tv.tpa_code = p.tpa_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as tpa_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.amex_account,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.performed_jet_issue_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.source_info,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select source_description from tl_source_info where source_info = p.source_info
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>select code_value from tl_code where code_type = 'source_info' and code_id = p.source_info and language_code = 'en-us') as source_description,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select partner_id from tl_source_info where source_info = p.source_info
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>select external_code from tl_code where code_type = 'source_info' and code_id = p.source_info and language_code = 'en-us') as partner_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.lead_number_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.distributor_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select distributor_description from tl_distributor_codes where distributor_code = p.distributor_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>select code_value from tl_code where code_type = 'distributor_codes' and code_id = p.distributor_code and language_code = 'en-us') as distributor_description,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.alternate_case_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select top 1 agent_number from agent_view where policy_id = p.policy_id and agent_number is not null) as agent_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select top 1 ltrim(rtrim(ps.last_name) + ', ' + rtrim(ps.first_name)) from person ps, agent_view av where av.person_id = ps.person_id and av.policy_id = p.policy_id and av.agent_number is not null) as agent_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select top 1 agency_number from agency_view where policy_id = p.policy_id) as agency_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select top 1 routing_number from agency_view where policy_id = p.policy_id) as routing_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select top 1 rtrim(ps.last_name) from person ps, agency_view av where av.person_id = ps.person_id and av.policy_id = p.policy_id) as agency_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.cedent_policy_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.cedent_company_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select cpv.last_name from company_view cpv where cpv.company_code = p.cedent_company_code) as cedent_company_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.cedent_fax_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.cedent_underwriter_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ltrim(rtrim(ps.last_name) + ', ' + rtrim(ps.first_name))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>person ps
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.cedent_underwriter_id = ps.person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as cedent_underwriter_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.cedent_contact_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ltrim(rtrim(ps.last_name) + ', ' + rtrim(ps.first_name))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>person ps
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.cedent_contact_id = ps.person_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as cedent_contact_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.cedent_date_sent,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.international_or_domestic,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.idb_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.currency_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select code_value from tl_code where code_type = 'currency_code' and code_id = p.currency_code and language_code = 'en-us') as currency_description,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>p.preferred_language_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select description from tl_language where language_code = p.preferred_language_code
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>select code_value from tl_code where code_type = 'language' and code_id = p.preferred_language_code and language_code = 'en-us') as preferred_language_description,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.person_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.party_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.policy_person_id as applicant_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>rtrim(i.last_name) + ', ' + rtrim(i.first_name) as full_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.last_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.first_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.middle_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.title,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.tax_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.tax_type_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.birth_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.sex,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.email_address,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.alt_email_address,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.marital_status,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.client_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.signed_state_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ssn.state_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>tl_country_state ssn
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ssn.country_state_id = i.signed_state_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as signed_state_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.underwriting_amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select top 1 issue_age from insured_coverages_view where policy_person_id = i.policy_person_id) as issue_age,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.primary_insured_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.aviation_exclusion,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.add_uw_amt,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select code_value from tl_code where code_type = 'applicant_status' and code_id = i.applicant_status and language_code = 'en-us') as applicant_status,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.applicant_status as applicant_status_short,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.applicant_status_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.is_member,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.allow_auto_approval,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.adverse_history,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.und_allow_auto_approval,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.und_allow_jet_issue,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.und_allow_auto_ordering,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.added_date as applicant_added_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.added_by as applicant_added_by,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ltrim(rtrim(ps.last_name) + ', ' + rtrim(ps.first_name))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>person ps, aus_user u
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>u.person_id = ps.person_id and u.user_id = i.added_by
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as applicant_added_by_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.reopen_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.retro_type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.aviation_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.entertainer_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.sports_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.foreign_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.additional_in_force,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.relationship_to_insured as relationship_to_insured_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select code_value from tl_acord_codes where code_type = 'VPI Relation RoleCode' and cast(code_id as char(30)) = i.relationship_to_insured
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>union
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>select code_value from tl_code where code_type = 'VPI Relation RoleCode' and cast(code_id as char(30)) = i.relationship_to_insured and language_code = 'en-us') as relationship_to_insured,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select top 1 plan_code_id from insured_coverages_view where policy_person_id = i.policy_person_id) as plan_code_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select top 1 planned_premium from insured_coverages_view where policy_person_id = i.policy_person_id) as planned_premium,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select top 1 web_quoted_class from insured_coverages_view where policy_person_id = i.policy_person_id) as web_quoted_class,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select top 1 rate_class_quoted from insured_coverages_view where policy_person_id = i.policy_person_id) as rate_class_quoted,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select top 1 rate_class_approved from insured_coverages_view where policy_person_id = i.policy_person_id) as rate_class_approved,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select top 1 rate_class_issued from insured_coverages_view where policy_person_id = i.policy_person_id) as rate_class_issued,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select top 1 amount from insured_coverages_view where policy_person_id = i.policy_person_id) as amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select top 1 perm_table_rating from insured_coverages_view where policy_person_id = i.policy_person_id) as perm_table_rating,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select top 1 perm_flat_extra_amount from insured_coverages_view where policy_person_id = i.policy_person_id) as perm_flat_extra_amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dma.residence_city,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dma.residence_postal_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dma.residence_address_line1,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dma.residence_address_line2,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dma.residence_address_line3,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dma.residence_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dma.residence_state_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dma.residence_state_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dma.residence_country_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dma.business_city,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dma.business_postal_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dma.business_address_line1,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dma.business_address_line2,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dma.business_address_line3,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dma.business_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dma.business_state_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dma.business_state_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dma.business_country_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dmp.home_phone_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dmp.home_phone_area_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dmp.home_phone_prefix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dmp.home_phone_suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dmp.home_phone_extension,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dmp.home_phone_pin,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dmp.work_phone_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dmp.work_phone_area_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dmp.work_phone_prefix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dmp.work_phone_suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dmp.work_phone_extension,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dmp.work_phone_pin,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dmp.fax_country_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dmp.fax_area_code,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dmp.fax_prefix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dmp.fax_suffix,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dmp.fax_extension,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dmp.fax_pin,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.create_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.expiration_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.manual_entry_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.income,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.net_worth,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.total_inforce,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.replacement_amount,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.replacement_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select tobacco_use_id from tobacco where requirement_information_id = ap.requirement_information_id) as smoker_status,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.birth_country,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>bc.country_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>tl_country bc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>bc.country_id = ap.birth_country
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as birth_country_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.birth_state,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>bsn.state_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>tl_country_state bsn
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>bsn.country_state_id = ap.birth_state
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as birth_state_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.drivers_license_number,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.drivers_license_country_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>drc.country_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>tl_country drc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>drc.country_id = ap.drivers_license_country_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as drivers_license_country_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.drivers_license_state,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>drsn.state_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>tl_country_state drsn
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>drsn.country_state_id = ap.drivers_license_state
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as drivers_license_state_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.bankruptcy_disposition,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.bankruptcy_discharge_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.occupation,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.height_inches,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.weight_pounds,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.weght_previous_year,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.reason_for_weight_change,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.waist_inches,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.last_md_visit,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.last_md_result,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.added_by as application_added_by,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ltrim(rtrim(ps.last_name) + ', ' + rtrim(ps.first_name))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>person ps, aus_user u
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>u.person_id = ps.person_id and u.user_id = ap.added_by
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as application_added_by_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.added_date as application_added_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.updated_by as application_updated_by,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ltrim(rtrim(ps.last_name) + ', ' + rtrim(ps.first_name))
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>person ps, aus_user u
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>u.person_id = ps.person_id and u.user_id = ap.updated_by
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as application_updated_by_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.update_date as application_updated_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.beneficiary_type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.medical_authorization_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.citizenship_country_id,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>cc.country_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>tl_country cc
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>cc.country_id = ap.citizenship_country_id
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as citizenship_country_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.doctor_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.doctor_addr,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.doctor_city,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.doctor_state,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>(select
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>docsn.state_name
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>tl_country_state docsn
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>docsn.country_state_id = ap.doctor_state
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>) as doctor_state_name,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.doctor_zip,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.last_visit_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.visit_reason,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.findings,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.treatments,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.still_under_treatment_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.prior_consultations_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.prior_consultation_detail,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.unearned_income,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.employer,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.years_at_employer,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.employer_address,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.income_prev_year,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.visa_type,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.job_duties,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.hippa_authorization_flag,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.monthly_expense,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.last_blood_profile_date,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.best_day_to_call,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.best_time_to_call,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.systolic_bp_reading,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.diastolic_bp_reading,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.cholesterol_reading,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.issue_state,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.business_income,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.business_net_worth,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.book_value,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.market_value,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.inspection_income,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.inspection_net_worth,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.inspection_business_income,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.inspection_business_net_worth,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.inspection_book_value,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.inspection_market_value,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.statement_income,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.statement_net_worth,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.statement_business_income,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.statement_business_net_worth,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.statement_book_value,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.statement_market_value,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.other_income,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.other_net_worth,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.other_business_income,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.other_business_net_worth,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.other_book_value,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.other_market_value
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>from
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>policy p,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>insured i,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>application_info_view ap,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>data_mart_address dma,
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>data_mart_phone dmp
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>where
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>i.policy_id = p.policy_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>ap.policy_person_id = i.policy_person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dma.person_id = i.person_id and
</Text></CREATE_TEXT><CREATE_TEXT><VIEW_NAME>data_mart_applicant</VIEW_NAME><Text>dmp.person_id = i.person_id
</Text></CREATE_TEXT><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>agency_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>agency_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>agency_number</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>agency_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>routing_number</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>agency_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>agent_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>agent_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>agent_number</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>agent_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>create_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>expiration_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>requirement_information_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>manual_entry_flag</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>income</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>net_worth</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>total_inforce</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>replacement_amount</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>replacement_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>birth_country</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>drivers_license_number</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>drivers_license_country_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>drivers_license_state</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>bankruptcy_disposition</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>bankruptcy_discharge_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>occupation</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>height_inches</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>weight_pounds</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>weght_previous_year</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>reason_for_weight_change</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>waist_inches</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>last_md_visit</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>last_md_result</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>added_by</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>added_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>updated_by</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>update_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>beneficiary_type</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>medical_authorization_flag</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>citizenship_country_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>doctor_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>doctor_addr</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>doctor_city</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>doctor_state</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>doctor_zip</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>last_visit_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>visit_reason</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>findings</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>treatments</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>still_under_treatment_flag</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>prior_consultations_flag</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>prior_consultation_detail</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>unearned_income</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>employer</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>years_at_employer</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>employer_address</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>income_prev_year</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>visa_type</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>job_duties</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>birth_state</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>hippa_authorization_flag</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>monthly_expense</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>last_blood_profile_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>best_day_to_call</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>best_time_to_call</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>systolic_bp_reading</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>diastolic_bp_reading</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>cholesterol_reading</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>issue_state</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_income</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_net_worth</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>book_value</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>market_value</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>inspection_income</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>inspection_net_worth</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>inspection_business_income</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>inspection_business_net_worth</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>inspection_book_value</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>inspection_market_value</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>statement_income</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>statement_net_worth</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>statement_business_income</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>statement_business_net_worth</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>statement_book_value</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>statement_market_value</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>other_income</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>other_net_worth</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>other_business_income</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>other_business_net_worth</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>other_book_value</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>application_info_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>other_market_value</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>company_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>last_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>company_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>company_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>residence_city</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>residence_postal_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>residence_address_line1</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>residence_address_line2</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>residence_address_line3</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>residence_country_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>residence_state_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>residence_state_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>residence_country_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_city</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_postal_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_address_line1</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_address_line2</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_address_line3</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_country_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_state_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_state_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_address</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>business_country_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>home_phone_country_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>home_phone_area_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>home_phone_prefix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>home_phone_suffix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>home_phone_extension</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>home_phone_pin</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_country_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_area_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_prefix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_suffix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_extension</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>work_phone_pin</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_country_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_area_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_prefix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_suffix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_extension</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>data_mart_phone</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>fax_pin</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>party_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>last_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>first_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>middle_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>title</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>suffix</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>tax_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>tax_type_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>birth_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>sex</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>email_address</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>marital_status</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>client_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>alt_email_address</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>signed_state_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>underwriting_amount</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>primary_insured_flag</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>aviation_exclusion</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>add_uw_amt</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>applicant_status</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>applicant_status_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>is_member</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>allow_auto_approval</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>adverse_history</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>und_allow_auto_approval</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>und_allow_jet_issue</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>und_allow_auto_ordering</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>added_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>added_by</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>reopen_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>retro_type</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>aviation_flag</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>entertainer_flag</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>sports_flag</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>foreign_flag</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>additional_in_force</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>relationship_to_insured</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>plan_code_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>amount</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>planned_premium</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>policy_person_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>perm_flat_extra_amount</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>rate_class_quoted</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>rate_class_approved</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>rate_class_issued</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>perm_table_rating</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>reason_text</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>final_action_note</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>final_action_by_id</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>final_action_date</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>web_quoted_class</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>insured_coverages_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>issue_age</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>tpa_code</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>tpa_short_name</column></VIEW_DEPENDS><VIEW_DEPENDS><VIEW_NAME>data_mart_applicant</VIEW_NAME><depname>tpa_view</depname><owner>dbo</owner><type>view</type><updated>no</updated><selected>yes</selected><column>last_name</column></VIEW_DEPENDS></VIEW><SPROC Action="Add"><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><USER_NAME>dbo</USER_NAME><category>0</category><ExecIsAnsiNullsOn>1</ExecIsAnsiNullsOn><ExecIsQuotedIdentOn>1</ExecIsQuotedIdentOn><ExecIsStartup>0</ExecIsStartup><IsAnsiNullsOn>1</IsAnsiNullsOn><IsQuotedIdentOn>1</IsQuotedIdentOn><IsExecuted>1</IsExecuted><IsExtendedProc>0</IsExtendedProc><IsReplProc>0</IsReplProc><IsSystemProc>0</IsSystemProc><Check_Sum>-1658610858</Check_Sum><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>CREATE PROCEDURE uspGetAdminAllApplicants 
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>    @password nvarchar(255),
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>    @where_clause nvarchar(500)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>AS
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>DECLARE @sql1 nvarchar(4000)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>DECLARE @sql2 nvarchar(4000)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>DECLARE @sql3 nvarchar(4000)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>DECLARE @sql4 nvarchar(4000)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>SET @sql1= N'SELECT wrap.* FROM (SELECT     p.company_code, p.policy_number AS case_number, p.alternate_case_id AS alternate_case_number, p.receive_date, p.service_associate_id, 
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                      dbo.clrLSDecrypt(i.last_name, ''' + @password + ''') AS applicant_last_name, dbo.clrLSDecrypt(i.first_name, ''' + @password + ''') AS applicant_first_name, i.sex AS gender, ppi.applicant_status AS applicant_status_code,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     code_value
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          tl_code
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (language_code = ''en-us'') AND (code_type = ''applicant_status'') AND (code_id = ppi.applicant_status)) AS applicant_status, 
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                      ppi.applicant_status_date, pc.amount AS amount_applied_for, dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as birth_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     address_line1
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          person_address AS pa
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (address_type_code = ''RESIDENCE'') AND (person_id = i.person_id)) AS residence_address_line1,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     address_line2
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          person_address AS pa
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (address_type_code = ''RESIDENCE'') AND (person_id = i.person_id)) AS residence_address_line2,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     address_line3
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          person_address AS pa
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (address_type_code = ''RESIDENCE'') AND (person_id = i.person_id)) AS residence_address_line3,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     city
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          person_address AS pa
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (address_type_code = ''RESIDENCE'') AND (person_id = i.person_id)) AS residence_city,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     LTRIM(RTRIM(cs.state_name)) + '' ('' + LTRIM(RTRIM(cs.state_code)) + '')'' AS Expr1
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          person_address AS pa INNER JOIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                   tl_country_state AS cs ON pa.country_state_id = cs.country_state_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (pa.address_type_code = ''RESIDENCE'') AND (pa.person_id = i.person_id)) AS residence_state,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     postal_code
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          person_address AS pa
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (address_type_code = ''RESIDENCE'') AND (person_id = i.person_id)) AS residence_postal_code,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     area_code
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          person_phone AS ph
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (phone_type_code = ''HOME'') AND (person_id = i.person_id)) AS home_phone_area_code,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     prefix
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          person_phone AS ph
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (phone_type_code = ''HOME'') AND (person_id = i.person_id)) AS home_phone_prefix,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     suffix
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          person_phone AS ph
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (phone_type_code = ''HOME'') AND (person_id = i.person_id)) AS home_phone_suffix,'
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>SET @sql2= N'(SELECT     area_code
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          person_phone AS ph
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (phone_type_code = ''WORK'') AND (person_id = i.person_id)) AS work_phone_area_code,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     prefix
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          person_phone AS ph
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (phone_type_code = ''WORK'') AND (person_id = i.person_id)) AS work_phone_prefix,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     suffix
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM         person_phone AS ph
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (phone_type_code = ''WORK'') AND (person_id = i.person_id)) AS work_phone_suffix,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     area_code
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          person_phone AS ph
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (phone_type_code = ''CELL'') AND (person_id = i.person_id)) AS cell_phone_area_code,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     prefix
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          person_phone AS ph
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (phone_type_code = ''CELL'') AND (person_id = i.person_id)) AS cell_phone_prefix,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     suffix
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          person_phone AS ph
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (phone_type_code = ''CELL'') AND (person_id = i.person_id)) AS cell_phone_suffix, i.email_address, cpi.final_action_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     RTRIM(dbo.clrLSDecrypt(ps.last_name, ''' + @password + ''')) + '', '' + RTRIM(dbo.clrLSDecrypt(ps.first_name, ''' + @password + ''')) AS Expr1
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          person AS ps INNER JOIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                   aus_user AS u ON ps.person_id = u.person_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (u.user_id = cpi.final_action_by_id)) AS final_action_by, cpi.reason_text AS final_action_reason,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     reason_code
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          tl_final_action_reason
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (reason_status =
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                       (SELECT     code_value
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                         FROM          tl_code AS tl_code_1
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                         WHERE      (language_code = ''en-us'') AND (code_type = ''applicant_status'') AND (code_id = cpi.coverage_status))) AND 
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                   (reason_text = cpi.reason_text)) AS reason_code, assoc.association_name, pc.plan_code_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     description
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          tl_plan_code
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (plan_code_id = pc.plan_code_id)) AS plan_code_description, cpi.g_number, pc.planned_premium,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     code_value
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          tl_acord_codes
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (code_type = ''Payment Mode'') AND (code_id = p.payment_mode_code)) AS premium_mode, cpi.web_quoted_class,'
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>SET @sql3= N'(SELECT     description
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          ta_rate_table_class
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (rulebook_id =
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                       (SELECT     TOP (1) rulebook_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                         FROM          rulebook_view
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                         WHERE      (plan_code_id = pc.plan_code_id) AND (association_code = p.association_code) AND (type = 0 OR
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                                                type IS NULL) OR
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                                                (plan_code_id = pc.plan_code_id) AND (type = 0 OR
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                                                type IS NULL) AND (p.association_code IS NULL))) AND (sequence_no = cpi.rate_class_quoted)) AS applied_for_rate_class,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     description
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          ta_rate_table_class AS ta_rate_table_class_2
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (rulebook_id =
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                       (SELECT     TOP (1) rulebook_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                         FROM          rulebook_view AS rulebook_view_2
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                         WHERE      (plan_code_id = pc.plan_code_id) AND (association_code = p.association_code) AND (type = 0 OR
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                                                type IS NULL) OR
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                                                (plan_code_id = pc.plan_code_id) AND (type = 0 OR
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                                                type IS NULL) AND (p.association_code IS NULL))) AND (sequence_no = cpi.rate_class_approved)) 
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                      AS system_recommended_rate_class,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     description
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          ta_rate_table_class AS ta_rate_table_class_1
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (rulebook_id =
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                       (SELECT     TOP (1) rulebook_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                         FROM          rulebook_view AS rulebook_view_1
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                         WHERE      (plan_code_id = pc.plan_code_id) AND (association_code = p.association_code) AND (type = 0 OR
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                                                type IS NULL) OR
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                                                (plan_code_id = pc.plan_code_id) AND (type = 0 OR
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                                                type IS NULL) AND (p.association_code IS NULL))) AND (sequence_no = cpi.rate_class_issued)) AS rate_class_approved, 
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                      pc.approved_amount AS issued_amount, pc.perm_table_rating AS table_rating, pc.perm_flat_extra_amount AS flat_extra_amount, p.cwa_amount, 
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                      ap.income,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     tobacco_use_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          tobacco
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (requirement_information_id = ap.requirement_information_id)) AS smoker_status, ap.occupation, '
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>SET @sql4= N'p.lead_number_id AS aggregator_lead_number, p.source_info,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     partner_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          tl_source_info
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (source_info = p.source_info)) AS partner_id, p.distributor_code, p.underwriter_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     RTRIM(dbo.clrLSDecrypt(last_name, ''' + @password + ''')) + '', '' + RTRIM(dbo.clrLSDecrypt(first_name, ''' + @password + ''')) AS Expr1
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          aus_user_view AS uw
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (user_id = p.underwriter_id)) AS underwriter_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     RTRIM(dbo.clrLSDecrypt(last_name, ''' + @password + ''')) + '', '' + RTRIM(dbo.clrLSDecrypt(first_name, ''' + @password + ''')) AS Expr1
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          aus_user_view AS sa
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (user_id = p.service_associate_id)) AS service_associate_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     team_name
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          team AS tm
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (team_id = p.team_id)) AS team_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     TOP (1) agent_number
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          agent_view
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (policy_id = p.policy_id)) AS agent_1_number,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     TOP (1) agent_number
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          agent_view AS agent_view_2
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (policy_id = p.policy_id) AND (agent_number NOT IN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                       (SELECT     agent_number
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                         FROM          agent_view AS agent_view_1
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                         WHERE      (policy_id = p.policy_id)))) AS agent_2_number,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     TOP (1) agency_number
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          agency_view
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE      (policy_id = p.policy_id)) AS bga_agency_number, p.team_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>FROM         policy_person_insured AS ppi INNER JOIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                      coverage_person AS cp INNER JOIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                      coverage_person_insured AS cpi ON cp.coverage_person_id = cpi.coverage_person_id INNER JOIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                      policy_coverage AS pc ON cp.policy_coverage_id = pc.policy_coverage_id INNER JOIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                      person AS i ON cp.person_id = i.person_id INNER JOIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                      policy AS p LEFT OUTER JOIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                          (SELECT     association_code, name AS association_name
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM          association
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            UNION
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            SELECT     c.company_code AS association_code, dbo.clrLSDecrypt(per.last_name, ''' + @password + ''') AS association_name
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            FROM         company AS c INNER JOIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                  person AS per ON c.person_id = per.person_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                            WHERE     (per.class_type = ''ASSN'') OR
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                                                  (per.class_type = ''GRP'')) AS assoc ON assoc.association_code = p.association_code ON pc.policy_id = p.policy_id ON 
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                      ppi.policy_person_id = cpi.policy_person_id INNER JOIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>                      insured_application_info AS ap ON ppi.policy_person_id = ap.policy_person_id) AS wrap '
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>EXEC(@sql1 + @sql2 + @sql3 + @sql4 + @where_clause)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_DEPENDS><SPROC_NAME>uspGetAdminAllApplicants</SPROC_NAME></SPROC_DEPENDS></SPROC><SPROC Action="Add"><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><USER_NAME>dbo</USER_NAME><category>0</category><ExecIsAnsiNullsOn>1</ExecIsAnsiNullsOn><ExecIsQuotedIdentOn>1</ExecIsQuotedIdentOn><ExecIsStartup>0</ExecIsStartup><IsAnsiNullsOn>1</IsAnsiNullsOn><IsQuotedIdentOn>1</IsQuotedIdentOn><IsExecuted>1</IsExecuted><IsExtendedProc>0</IsExtendedProc><IsReplProc>0</IsReplProc><IsSystemProc>0</IsSystemProc><Check_Sum>1556016594</Check_Sum><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>CREATE PROCEDURE uspGetAgeAmountMatrix 
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>    @password nvarchar(255),
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>    @where_clause nvarchar(500)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>AS
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>DECLARE @sql1 nvarchar(4000)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>DECLARE @sql2 nvarchar(4000)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>DECLARE @sql3 nvarchar(4000)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>DECLARE @sql4 nvarchar(4000)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>DECLARE @sql5 nvarchar(4000)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>DECLARE @sql6 nvarchar(4000)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>DECLARE @sql7 nvarchar(4000)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>DECLARE @sql8 nvarchar(4000)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>SET @sql1= N'SELECT
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	p.company_code,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	p.underwriter_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	p.service_associate_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	p.receive_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	p.distributor_code,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	p.source_info,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 18 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 41 and i.underwriting_amount &gt;= 100000 and i.underwriting_amount &lt; 151000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_a_amount_a,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 41 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 51 and i.underwriting_amount &gt;= 100000 and i.underwriting_amount &lt; 151000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_b_amount_a,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 51 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 56 and i.underwriting_amount &gt;= 100000 and i.underwriting_amount &lt; 151000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_c_amount_a,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 56 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 61 and i.underwriting_amount &gt;= 100000 and i.underwriting_amount &lt; 151000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_d_amount_a,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 61 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 66 and i.underwriting_amount &gt;= 100000 and i.underwriting_amount &lt; 151000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_e_amount_a,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 66 and i.underwriting_amount &gt;= 100000 and i.underwri</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>ting_amount &lt; 151000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_f_amount_a,'
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>SET @sql2= N'(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 18 and (cast(CURRENT_TIMESTAMP - dbo.clrL</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>SDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &lt; 41 and i.underwriting_amount &gt;= 151000 and i.underwriting_amount &lt; 251000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_a_amount_b,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 41 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 51 and i.underwriting_amount &gt;= 151000 and i.underwriting_amount &lt; 251000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_b_amount_b,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 51 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 56 and i.underwriting_amount &gt;= 151000 and i.underwriting_amount &lt; 251000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_c_amount_b,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 56 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 61 and i.underwriting_amount &gt;= 151000 and i.underwriting_amount &lt; 251000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_d_amount_b,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 61 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 66 and i.underwriting_amount &gt;= 151000 and i.underwriting_amount &lt; 251000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_e_amount_b,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 66 and i.underwriting_amount &gt;= 151000 and i.underwri</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>ting_amount &lt; 251000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_f_amount_b,'
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>SET @sql3= N'(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 18 and (cast(CURRENT_TIMESTAMP - dbo.clrL</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>SDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &lt; 41 and i.underwriting_amount &gt;= 251000 and i.underwriting_amount &lt; 501000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_a_amount_c,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 41 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 51 and i.underwriting_amount &gt;= 251000 and i.underwriting_amount &lt; 501000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_b_amount_c,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 51 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 56 and i.underwriting_amount &gt;= 251000 and i.underwriting_amount &lt; 501000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_c_amount_c,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 56 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 61 and i.underwriting_amount &gt;= 251000 and i.underwriting_amount &lt; 501000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_d_amount_c,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 61 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 66 and i.underwriting_amount &gt;= 251000 and i.underwriting_amount &lt; 501000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_e_amount_c,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 66 and i.underwriting_amount &gt;= 251000 and i.underwri</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>ting_amount &lt; 501000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_f_amount_c,'
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>SET @sql4= N'(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 18 and (cast(CURRENT_TIMESTAMP - dbo.clrL</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>SDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &lt; 41 and i.underwriting_amount &gt;= 501000 and i.underwriting_amount &lt; 1001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_a_amount_d,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 41 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 51 and i.underwriting_amount &gt;= 501000 and i.underwriting_amount &lt; 1001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_b_amount_d,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 51 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 56 and i.underwriting_amount &gt;= 501000 and i.underwriting_amount &lt; 1001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_c_amount_d,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 56 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 61 and i.underwriting_amount &gt;= 501000 and i.underwriting_amount &lt; 1001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_d_amount_d,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 61 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 66 and i.underwriting_amount &gt;= 501000 and i.underwriting_amount &lt; 1001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_e_amount_d,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 66 and i.underwriting_amount &gt;= 501000 and i.underwri</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>ting_amount &lt; 1001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_f_amount_d,'
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>SET @sql5= N'(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 18 and (cast(CURRENT_TIMESTAMP - dbo.clrL</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>SDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &lt; 41 and i.underwriting_amount &gt;= 1001000 and i.underwriting_amount &lt; 2001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_a_amount_e,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 41 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 51 and i.underwriting_amount &gt;= 1001000 and i.underwriting_amount &lt; 2001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_b_amount_e,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 51 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 56 and i.underwriting_amount &gt;= 1001000 and i.underwriting_amount &lt; 2001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_c_amount_e,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 56 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 61 and i.underwriting_amount &gt;= 1001000 and i.underwriting_amount &lt; 2001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_d_amount_e,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 61 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 66 and i.underwriting_amount &gt;= 1001000 and i.underwriting_amount &lt; 2001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_e_amount_e,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 66 and i.underwriting_amount &gt;= 1001000 and i.underwr</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>iting_amount &lt; 2001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_f_amount_e,'
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>SET @sql6= N'(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 18 and (cast(CURRENT_TIMESTAMP - dbo.clrL</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>SDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &lt; 41 and i.underwriting_amount &gt;= 2001000 and i.underwriting_amount &lt; 3001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_a_amount_f,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 41 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 51 and i.underwriting_amount &gt;= 2001000 and i.underwriting_amount &lt; 3001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_b_amount_f,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 51 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 56 and i.underwriting_amount &gt;= 2001000 and i.underwriting_amount &lt; 3001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_c_amount_f,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 56 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 61 and i.underwriting_amount &gt;= 2001000 and i.underwriting_amount &lt; 3001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_d_amount_f,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 61 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 66 and i.underwriting_amount &gt;= 2001000 and i.underwriting_amount &lt; 3001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_e_amount_f,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 66 and i.underwriting_amount &gt;= 2001000 and i.underwr</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>iting_amount &lt; 3001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_f_amount_f,'
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>SET @sql7= N'(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 18 and (cast(CURRENT_TIMESTAMP - dbo.clrL</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>SDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &lt; 41 and i.underwriting_amount &gt;= 3001000 and i.underwriting_amount &lt; 5001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_a_amount_g,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 41 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 51 and i.underwriting_amount &gt;= 3001000 and i.underwriting_amount &lt; 5001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_b_amount_g,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 51 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 56 and i.underwriting_amount &gt;= 3001000 and i.underwriting_amount &lt; 5001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_c_amount_g,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 56 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 61 and i.underwriting_amount &gt;= 3001000 and i.underwriting_amount &lt; 5001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_d_amount_g,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 61 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 66 and i.underwriting_amount &gt;= 3001000 and i.underwriting_amount &lt; 5001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_e_amount_g,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 66 and i.underwriting_amount &gt;= 3001000 and i.underwr</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>iting_amount &lt; 5001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_f_amount_g,'
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>SET @sql8= N'(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 18 and (cast(CURRENT_TIMESTAMP - dbo.clrL</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>SDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &lt; 41 and i.underwriting_amount &gt;= 5001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_a_amount_h,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 41 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 51 and i.underwriting_amount &gt;= 5001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_b_amount_h,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 51 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 56 and i.underwriting_amount &gt;= 5001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_c_amount_h,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 56 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 61 and i.underwriting_amount &gt;= 5001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_d_amount_h,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 61 and (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.b</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>irth_date, ''' + @password + ''') as int)/365) &lt; 66 and i.underwriting_amount &gt;= 5001000 and i.policy_id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_e_amount_h,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	(select count(*) from insured i, (select * from tl_code where code_type = ''applicant_status'') st where (cast(CURRENT_TIMESTAMP - dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as int)/365) &gt;= 66 and i.underwriting_amount &gt;= 5001000 and i.policy_</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>id = p.policy_id and i.applicant_status = st.code_id and st.external_code &lt;&gt; ''CN'') as age_f_amount_h,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	p.team_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>FROM
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>	policy p '
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>EXEC(@sql1 + @sql2 + @sql3 + @sql4 + @sql5 + @sql6 + @sql7 + @sql8 + @where_clause)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_DEPENDS><SPROC_NAME>uspGetAgeAmountMatrix</SPROC_NAME></SPROC_DEPENDS></SPROC><SPROC Action="Add"><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><USER_NAME>dbo</USER_NAME><category>0</category><ExecIsAnsiNullsOn>1</ExecIsAnsiNullsOn><ExecIsQuotedIdentOn>1</ExecIsQuotedIdentOn><ExecIsStartup>0</ExecIsStartup><IsAnsiNullsOn>1</IsAnsiNullsOn><IsQuotedIdentOn>1</IsQuotedIdentOn><IsExecuted>1</IsExecuted><IsExtendedProc>0</IsExtendedProc><IsReplProc>0</IsReplProc><IsSystemProc>0</IsSystemProc><Check_Sum>-23578509</Check_Sum><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>CREATE PROCEDURE uspGetAllApplicants 
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>    @password nvarchar(255),
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>    @where_clause nvarchar(500)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>AS
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>DECLARE @sql1 nvarchar(4000)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>DECLARE @sql2 nvarchar(4000)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>DECLARE @sql3 nvarchar(4000)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>SET @sql1= N'SELECT wrap.* FROM (SELECT     p.company_code, p.policy_number AS case_number, p.alternate_case_id AS alternate_case_number, p.receive_date, p.service_associate_id, 
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>      i.sex AS gender, ppi.applicant_status AS applicant_status_code,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>          (SELECT     code_value
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            FROM          tl_code
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            WHERE      (language_code = ''en-us'') AND (code_type = ''applicant_status'') AND (code_id = ppi.applicant_status)) AS applicant_status, 
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>      ppi.applicant_status_date, pc.amount AS amount_applied_for, dbo.clrLSDecrypt(i.birth_date, ''' + @password + ''') as birth_date, pa.country_state_id AS residence_state_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>          (SELECT     RTRIM(state_name) + '' ('' + RTRIM(state_code) + '')'' AS Expr1
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            FROM          tl_country_state AS cs
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            WHERE      (country_state_id = pa.country_state_id)) AS residence_state, cpi.final_action_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>          (SELECT     RTRIM(dbo.clrLSDecrypt(ps.last_name, ''' + @password + ''')) + '', '' + RTRIM(dbo.clrLSDecrypt(ps.first_name, ''' + @password + ''')) AS Expr1
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            FROM          person AS ps INNER JOIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                   aus_user AS u ON ps.person_id = u.person_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            WHERE      (u.user_id = cpi.final_action_by_id)) AS final_action_by, cpi.reason_text AS final_action_reason,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>          (SELECT     reason_code
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            FROM          tl_final_action_reason
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            WHERE      (reason_status =
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                       (SELECT     code_value
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                         FROM          tl_code AS tl_code_1
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                         WHERE      (language_code = ''en-us'') AND (code_type = ''applicant_status'') AND (code_id = cpi.coverage_status))) AND 
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                   (reason_text = cpi.reason_text)) AS reason_code, assoc.association_name, pc.plan_code_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>          (SELECT     description
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            FROM          tl_plan_code
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            WHERE      (plan_code_id = pc.plan_code_id)) AS plan_code_description, cpi.g_number, pc.planned_premium,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>          (SELECT     code_value
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            FROM          tl_acord_codes
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            WHERE      (code_type = ''Payment Mode'') AND (code_id = p.payment_mode_code)) AS premium_mode, cpi.web_quoted_class,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>          (SELECT     description
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            FROM          ta_rate_table_class
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            WHERE      (rulebook_id =
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                       (SELECT     TOP (1) rulebook_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                         FROM          rulebook_view
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                         WHERE      (plan_code_id = pc.plan_code_id) AND (association_code = p.association_code) AND (type = 0 OR
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                                                type IS NULL) OR
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                                                (plan_code_id = pc.plan_code_id) AND (type = 0 OR
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                                                type IS NULL) AND (p.association_code IS NULL))) AND (sequence_no = cpi.rate_class_quoted)) AS applied_for_rate_class,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>						(SELECT     description
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            FROM          ta_rate_table_class AS ta_rate_table_class_2
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            WHERE      (rulebook_id =
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                       (SELECT     TOP (1) rulebook_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                         FROM          rulebook_view AS rulebook_view_2
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                         WHERE      (plan_code_id = pc.plan_code_id) AND (association_code = p.association_code) AND (type = 0 OR
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                                                type IS NULL) OR
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                                                (plan_code_id = pc.plan_code_id) AND (type = 0 OR
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                                                type IS NULL) AND (p.association_code IS NULL))) AND (sequence_no = cpi.rate_class_approved)) 
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>      				AS system_recommended_rate_class,'
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>SET @sql2= N'(SELECT     description
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            FROM          ta_rate_table_class AS ta_rate_table_class_1
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            WHERE      (rulebook_id =
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                       (SELECT     TOP (1) rulebook_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                         FROM          rulebook_view AS rulebook_view_1
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                         WHERE      (plan_code_id = pc.plan_code_id) AND (association_code = p.association_code) AND (type = 0 OR
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                                                type IS NULL) OR
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                                                (plan_code_id = pc.plan_code_id) AND (type = 0 OR
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                                                type IS NULL) AND (p.association_code IS NULL))) AND (sequence_no = cpi.rate_class_issued)) AS rate_class_approved, 
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>      pc.approved_amount AS issued_amount, pc.perm_table_rating AS table_rating, pc.perm_flat_extra_amount AS flat_extra_amount, p.cwa_amount, 
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>      ap.income,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>          (SELECT     tobacco_use_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            FROM          tobacco
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            WHERE      (requirement_information_id = ap.requirement_information_id)) AS smoker_status, ap.occupation, 
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>      p.lead_number_id AS aggregator_lead_number, p.source_info,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>          (SELECT     partner_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            FROM          tl_source_info
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            WHERE      (source_info = p.source_info)) AS partner_id, p.distributor_code, p.underwriter_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>          (SELECT     RTRIM(dbo.clrLSDecrypt(ps.last_name, ''' + @password + ''')) + '', '' + RTRIM(dbo.clrLSDecrypt(ps.first_name, ''' + @password + ''')) AS Expr1
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            FROM          person AS ps INNER JOIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                   aus_user AS u ON ps.person_id = u.person_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            WHERE      (u.user_id = p.underwriter_id)) AS underwriter_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>          (SELECT     RTRIM(dbo.clrLSDecrypt(ps.last_name, ''' + @password + ''')) + '', '' + RTRIM(dbo.clrLSDecrypt(ps.first_name, ''' + @password + ''')) AS Expr1
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            FROM          person AS ps INNER JOIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                   aus_user AS u ON ps.person_id = u.person_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            WHERE      (u.user_id = p.service_associate_id)) AS service_associate_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>          (SELECT     team_name
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            FROM          team AS tm
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            WHERE      (team_id = p.team_id)) AS team_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>          (SELECT     TOP (1) agent_number
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            FROM          agent_view
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            WHERE      (policy_id = p.policy_id)) AS agent_1_number,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>          (SELECT     TOP (1) agent_number
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            FROM          agent_view AS agent_view_2
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            WHERE      (policy_id = p.policy_id) AND (agent_number NOT IN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                       (SELECT     agent_number
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                         FROM          agent_view AS agent_view_1
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                         WHERE      (policy_id = p.policy_id)))) AS agent_2_number,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>          (SELECT     TOP (1) agency_number
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            FROM          agency_view
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>            WHERE      (policy_id = p.policy_id)) AS bga_agency_number, p.team_id'
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>SET @sql3= N' FROM         insured_application_info AS ap INNER JOIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>              policy_person_insured AS ppi INNER JOIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>              coverage_person AS cp INNER JOIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>              coverage_person_insured AS cpi ON cp.coverage_person_id = cpi.coverage_person_id INNER JOIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>              policy_coverage AS pc ON cp.policy_coverage_id = pc.policy_coverage_id INNER JOIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>              person_address AS pa RIGHT OUTER JOIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>              person AS i ON pa.person_id = i.person_id ON cp.person_id = i.person_id INNER JOIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>              team AS t RIGHT OUTER JOIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>              policy AS p ON t.team_id = p.team_id ON pc.policy_id = p.policy_id ON ppi.policy_person_id = cpi.policy_person_id ON 
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>              ap.policy_person_id = ppi.policy_person_id LEFT OUTER JOIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                  (SELECT association_code, name AS association_name
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                    FROM          association
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                    UNION
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                    SELECT     c.company_code AS association_code, per.last_name AS association_name
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                    FROM         company AS c INNER JOIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                          person AS per ON c.person_id = per.person_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                    WHERE     (per.class_type = ''ASSN'') OR
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>                                          (per.class_type = ''GRP'')) AS assoc ON assoc.association_code = p.association_code
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>WHERE     (pa.address_type_code = ''RESIDENCE'')) AS wrap '
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>EXEC(@sql1 + @sql2 + @sql3 + @where_clause)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetAllApplicants</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_DEPENDS><SPROC_NAME>uspGetAllApplicants</SPROC_NAME></SPROC_DEPENDS></SPROC><SPROC Action="Add"><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><USER_NAME>dbo</USER_NAME><category>0</category><ExecIsAnsiNullsOn>1</ExecIsAnsiNullsOn><ExecIsQuotedIdentOn>1</ExecIsQuotedIdentOn><ExecIsStartup>0</ExecIsStartup><IsAnsiNullsOn>1</IsAnsiNullsOn><IsQuotedIdentOn>1</IsQuotedIdentOn><IsExecuted>1</IsExecuted><IsExtendedProc>0</IsExtendedProc><IsReplProc>0</IsReplProc><IsSystemProc>0</IsSystemProc><Check_Sum>1359634615</Check_Sum><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>CREATE PROCEDURE uspGetApplicantsByUnderwriter
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>    @password nvarchar(255),
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>    @where_clause nvarchar(500)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>AS
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>DECLARE @sql1 nvarchar(4000) 
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>SET @sql1= N'SELECT wrap.* FROM (SELECT
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>	p.company_code,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>	p.underwriter_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>	p.service_associate_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>	i.applicant_status_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>	(select
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>	ltrim(rtrim(dbo.clrLSDecrypt(ps.last_name, ''' + @password + ''')) + '', '' + rtrim(dbo.clrLSDecrypt(ps.first_name, ''' + @password + ''')))
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>	from
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>	person ps, aus_user u
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>	where
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>	u.person_id = ps.person_id and u.user_id = p.underwriter_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>	) as underwriter_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>	i.applicant_status,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>	p.team_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>FROM
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>	policy p,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>	insured i
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>WHERE
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>	i.policy_id = p.policy_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>	p.underwriter_id is not null and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>	i.applicant_status not in (select code_id from tl_code where code_type = ''applicant_status'' and external_code = ''CN'')) AS wrap '
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>EXEC(@sql1 + @where_clause)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_DEPENDS><SPROC_NAME>uspGetApplicantsByUnderwriter</SPROC_NAME></SPROC_DEPENDS></SPROC><SPROC Action="Add"><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><USER_NAME>dbo</USER_NAME><category>0</category><ExecIsAnsiNullsOn>1</ExecIsAnsiNullsOn><ExecIsQuotedIdentOn>1</ExecIsQuotedIdentOn><ExecIsStartup>0</ExecIsStartup><IsAnsiNullsOn>1</IsAnsiNullsOn><IsQuotedIdentOn>1</IsQuotedIdentOn><IsExecuted>1</IsExecuted><IsExtendedProc>0</IsExtendedProc><IsReplProc>0</IsReplProc><IsSystemProc>0</IsSystemProc><Check_Sum>1050085666</Check_Sum><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>CREATE PROCEDURE uspGetFinalActionStatus 
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>    @password nvarchar(255),
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>    @where_clause nvarchar(500)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>AS
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>DECLARE @sql1 nvarchar(4000)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>SET @sql1= N'SELECT wrap.* FROM (SELECT
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>	p.company_code,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>	p.underwriter_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>	p.service_associate_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>	p.distributor_code,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>	p.source_info,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>	p.policy_number as case_number,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>	p.alternate_case_id as alternate_case_number,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>	(select code_value from tl_code where language_code = ''en-us'' and code_type = ''applicant_status'' and code_id = i.applicant_status) as applicant_status,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>	(select top 1 final_action_date from insured_coverages_view where policy_person_id = i.policy_person_id) as final_action_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>	p.team_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>FROM
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>	policy p,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>	insured i
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>WHERE
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>	i.policy_id = p.policy_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>	i.applicant_status in (select code_id from tl_code where code_type = ''applicant_status'' and external_code in (''AP'', ''DE'', ''RC'', ''WI''))) AS wrap '
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>EXEC(@sql1 + @where_clause)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_DEPENDS><SPROC_NAME>uspGetFinalActionStatus</SPROC_NAME></SPROC_DEPENDS></SPROC><SPROC Action="Add"><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><USER_NAME>dbo</USER_NAME><category>0</category><ExecIsAnsiNullsOn>1</ExecIsAnsiNullsOn><ExecIsQuotedIdentOn>1</ExecIsQuotedIdentOn><ExecIsStartup>0</ExecIsStartup><IsAnsiNullsOn>1</IsAnsiNullsOn><IsQuotedIdentOn>1</IsQuotedIdentOn><IsExecuted>1</IsExecuted><IsExtendedProc>0</IsExtendedProc><IsReplProc>0</IsReplProc><IsSystemProc>0</IsSystemProc><Check_Sum>-351117731</Check_Sum><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>CREATE PROCEDURE uspGetFinalDisposition  
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>    @password nvarchar(255),
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>    @where_clause nvarchar(500)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>AS
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>DECLARE @sql1 nvarchar(4000)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>SET @sql1= N'SELECT wrap.* FROM (SELECT
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>	p.company_code,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>	p.underwriter_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>	p.service_associate_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>	i.applicant_status_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>	p.distributor_code,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>	p.source_info,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>	(select external_code from tl_code where code_type = ''applicant_status'' and code_id = i.applicant_status) as applicant_status,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>	i.underwriting_amount,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>	cast(i.applicant_status_date - p.receive_date as int) as days_open,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>	p.team_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>FROM
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>	policy p,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>	insured i
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>WHERE
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>	i.policy_id = p.policy_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>	i.applicant_status in (select code_id from tl_code where code_type = ''applicant_status'' and external_code in (''AP'', ''DE'', ''RC'', ''WI''))) AS wrap '
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>EXEC(@sql1 + @where_clause)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_DEPENDS><SPROC_NAME>uspGetFinalDisposition</SPROC_NAME></SPROC_DEPENDS></SPROC><SPROC Action="Add"><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><USER_NAME>dbo</USER_NAME><category>0</category><ExecIsAnsiNullsOn>1</ExecIsAnsiNullsOn><ExecIsQuotedIdentOn>1</ExecIsQuotedIdentOn><ExecIsStartup>0</ExecIsStartup><IsAnsiNullsOn>1</IsAnsiNullsOn><IsQuotedIdentOn>1</IsQuotedIdentOn><IsExecuted>1</IsExecuted><IsExtendedProc>0</IsExtendedProc><IsReplProc>0</IsReplProc><IsSystemProc>0</IsSystemProc><Check_Sum>997071660</Check_Sum><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>CREATE PROCEDURE uspGetNbRequirementProductivity
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>    @password nvarchar(255),
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>    @where_clause nvarchar(500)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>AS
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>DECLARE @sql1 nvarchar(4000)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>SET @sql1= N'SELECT wrap.* FROM (SELECT
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>	es.added_by as user_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>	p.team_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>	p.underwriter_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>	p.service_associate_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>	(select
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>	ltrim(rtrim(dbo.clrLSDecrypt(ps.last_name, ''' + @password + ''')) + '', '' + rtrim(dbo.clrLSDecrypt(ps.first_name, ''' + @password + ''')))
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>	from
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>	person ps, aus_user u
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>	where
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>	u.person_id = ps.person_id and u.user_id = es.added_by
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>	) as user_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>	p.policy_number,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>	ir.requirement_code,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>	(select tlr.requirement_name from tl_requirement tlr where tlr.requirement_code = ir.requirement_code) as requirement_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>	es.code as status,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>	es.status_date
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>FROM
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>	policy p,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>	policy_person pp,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>	insured_requirement ir,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>	evidence_status_view es
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>WHERE
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>	pp.policy_id = p.policy_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>	pp.policy_person_id = ir.policy_person_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>	ir.insured_requirement_id = es.insured_requirement_id) AS wrap '
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>EXEC(@sql1 + @where_clause)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_DEPENDS><SPROC_NAME>uspGetNbRequirementProductivity</SPROC_NAME></SPROC_DEPENDS></SPROC><SPROC Action="Add"><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><USER_NAME>dbo</USER_NAME><category>0</category><ExecIsAnsiNullsOn>1</ExecIsAnsiNullsOn><ExecIsQuotedIdentOn>1</ExecIsQuotedIdentOn><ExecIsStartup>0</ExecIsStartup><IsAnsiNullsOn>1</IsAnsiNullsOn><IsQuotedIdentOn>1</IsQuotedIdentOn><IsExecuted>1</IsExecuted><IsExtendedProc>0</IsExtendedProc><IsReplProc>0</IsReplProc><IsSystemProc>0</IsSystemProc><Check_Sum>-651367161</Check_Sum><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>CREATE PROCEDURE uspGetNbWorkTypeProductivity
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>    @password nvarchar(255),
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>    @where_clause nvarchar(500)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>AS
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>DECLARE @sql1 nvarchar(4000)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>SET @sql1= N'SELECT wrap.* FROM (SELECT
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	es.added_by as user_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	p.team_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	p.underwriter_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	p.service_associate_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	(select
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	ltrim(rtrim(dbo.clrLSDecrypt(ps.last_name, ''' + @password + ''')) + '', '' + rtrim(dbo.clrLSDecrypt(ps.first_name, ''' + @password + ''')))
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	from
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	person ps, aus_user u
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	where
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	u.person_id = ps.person_id and u.user_id = es.added_by
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	) as user_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	p.policy_number,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	''Requirement'' as work_type,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	tlr.requirement_name as work_type_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	''Satisfied'' as status,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	es.status_date
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>FROM
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	policy p,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	insured i,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	insured_requirement ir,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	tl_requirement tlr,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	evidence_status_view es
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>WHERE
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	i.policy_id = p.policy_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	i.policy_person_id = ir.policy_person_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	ir.insured_requirement_id = es.insured_requirement_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	ir.requirement_code = tlr.requirement_code and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	es.code = ''Satisfied''
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>UNION
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>SELECT
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	es.added_by as user_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	p.team_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	p.underwriter_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	p.service_associate_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	(select
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	ltrim(rtrim(dbo.clrLSDecrypt(ps.last_name, ''' + @password + ''')) + '', '' + rtrim(dbo.clrLSDecrypt(ps.first_name, ''' + @password + ''')))
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	from
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	person ps, aus_user u
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	where
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	u.person_id = ps.person_id and u.user_id = es.added_by
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	) as user_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	p.policy_number,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	''Requirement'' as work_type,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	tlr.requirement_name as work_type_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	''Added'' as status,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	es.status_date
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>FROM
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	policy p,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	insured i,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	insured_requirement ir,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	tl_requirement tlr,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	evidence_status_view es
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>WHERE
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	i.policy_id = p.policy_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	i.policy_person_id = ir.policy_person_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	ir.insured_requirement_id = es.insured_requirement_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	ir.requirement_code = tlr.requirement_code and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	es.code = ''Open''
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>UNION
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>SELECT
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	n.author as user_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	p.team_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	p.underwriter_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	p.service_associate_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	(select
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	ltrim(rtrim(dbo.clrLSDecrypt(ps.last_name, ''' + @password + ''')) + '', '' + rtrim(dbo.clrLSDecrypt(ps.first_name, ''' + @password + ''')))
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	from
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	person ps, aus_user u
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	where
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	u.person_id = ps.person_id and u.user_id = n.author
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	) as user_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	p.policy_number,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	''Referral'' as work_type,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	''Referral'' as work_type_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	''Added'' as status,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	n.added_date as status_date
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>FROM
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	policy p,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	insured i,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	notes n
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>WHERE
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	i.policy_id = p.policy_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	i.policy_person_id = n.policy_person_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	n.note_type = ''Refer'' and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	n.reviewed_by is null
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>UNION
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>SELECT
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	n.reviewed_by as user_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	p.team_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	p.underwriter_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	p.service_associate_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	(select
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	ltrim(rtrim(dbo.clrLSDecrypt(ps.last_name, ''' + @password + ''')) + '', '' + rtrim(dbo.clrLSDecrypt(ps.first_name, ''' + @password + ''')))
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	from
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	person ps, aus_user u
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	where
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	u.person_id = ps.person_id and u.user_id = n.reviewed_by
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	) as user_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	p.policy_number,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	''Referral'' as work_type,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	''Referral'' as work_type_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	''Closed'' as status,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	n.reviewed_date as status_date
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>FROM
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	policy p,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	insured i,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	notes n
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>WHERE
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	i.policy_id = p.policy_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	i.policy_person_id = n.policy_person_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	n.note_type = ''Refer'' and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	n.reviewed_by is not null
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>UNION
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>SELECT
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	rm.checked_off_by as user_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	p.team_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	p.underwriter_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	p.service_associate_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	(select
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	ltrim(rtrim(dbo.clrLSDecrypt(ps.last_name, ''' + @password + ''')) + '', '' + rtrim(dbo.clrLSDecrypt(ps.first_name, ''' + @password + ''')))
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	from
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	person ps, aus_user u
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	where
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	u.person_id = ps.person_id and u.user_id = rm.checked_off_by
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	) as user_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	p.policy_number,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	''Review Message'' as work_type,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	''Review Message'' as work_type_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	''Satisfied'' as status,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	rm.check_off_date as status_date
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>FROM
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	policy p,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	review_message rm
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>WHERE
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	rm.policy_id = p.policy_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	rm.checkoff_flag is not null and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	rm.checkoff_flag &lt;&gt; 0 and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>	rm.checked_off_by is not null) AS wrap '
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>EXEC(@sql1 + @where_clause)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_DEPENDS><SPROC_NAME>uspGetNbWorkTypeProductivity</SPROC_NAME></SPROC_DEPENDS></SPROC><SPROC Action="Add"><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><USER_NAME>dbo</USER_NAME><category>0</category><ExecIsAnsiNullsOn>1</ExecIsAnsiNullsOn><ExecIsQuotedIdentOn>1</ExecIsQuotedIdentOn><ExecIsStartup>0</ExecIsStartup><IsAnsiNullsOn>1</IsAnsiNullsOn><IsQuotedIdentOn>1</IsQuotedIdentOn><IsExecuted>1</IsExecuted><IsExtendedProc>0</IsExtendedProc><IsReplProc>0</IsReplProc><IsSystemProc>0</IsSystemProc><Check_Sum>1614970481</Check_Sum><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>CREATE PROCEDURE uspGetPolicyRequirements
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>    @password nvarchar(255),
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>    @where_clause nvarchar(500)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>AS
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>DECLARE @sql1 nvarchar(4000)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>SET @sql1= N'SELECT wrap.* FROM (SELECT
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	p.company_code,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	p.underwriter_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	p.service_associate_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	p.distributor_code,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	p.source_info,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	p.policy_number as case_number,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	tlr.requirement_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	tc.code_value as requirement_status,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	rv.ordered_date as ordered_open_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	rv.schedule_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	rv.complete_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	rv.closed_date as final_status_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	p.team_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>FROM
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	policy p,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	policy_person pp,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	requirement_view rv,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	tl_requirement tlr,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	tl_code tc
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>WHERE
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	pp.policy_id = p.policy_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	rv.policy_person_id = pp.policy_person_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	tlr.requirement_code = rv.requirement_code and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	(rv.closed_disposition is null or
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	rv.closed_disposition&lt;&gt; ''D'') and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	rv.ordered_date is not null and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	tc.language_code = ''en-us'' and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	tc.code_type = ''RequirementStatus'' and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	((rv.closed_disposition is null and tc.code_id = ''O'') or
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	tc.code_id = rv.closed_disposition)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>UNION
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>SELECT
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	p.company_code,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	p.underwriter_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	p.service_associate_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	p.distributor_code,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	p.source_info,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	p.policy_number as case_number,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	tlr.requirement_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	tc.code_value as requirement_status,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	rv.added_date as ordered_open_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	rv.schedule_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	rv.complete_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	rv.closed_date as final_status_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	p.team_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>FROM
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	policy p,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	policy_person pp,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	requirement_view rv,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	tl_requirement tlr,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	tl_code tc
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>WHERE
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	pp.policy_id = p.policy_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	rv.policy_person_id = pp.policy_person_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	tlr.requirement_code = rv.requirement_code and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	(rv.closed_disposition is null or
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	rv.closed_disposition&lt;&gt; ''D'') and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	rv.ordered_date is null and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	tc.language_code = ''en-us'' and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	tc.code_type = ''RequirementStatus'' and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	((rv.closed_disposition is null and tc.code_id = ''O'') or
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>	tc.code_id = rv.closed_disposition)) AS wrap '
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>EXEC(@sql1 + @where_clause)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_DEPENDS><SPROC_NAME>uspGetPolicyRequirements</SPROC_NAME></SPROC_DEPENDS></SPROC><SPROC Action="Add"><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><USER_NAME>dbo</USER_NAME><category>0</category><ExecIsAnsiNullsOn>1</ExecIsAnsiNullsOn><ExecIsQuotedIdentOn>1</ExecIsQuotedIdentOn><ExecIsStartup>0</ExecIsStartup><IsAnsiNullsOn>1</IsAnsiNullsOn><IsQuotedIdentOn>1</IsQuotedIdentOn><IsExecuted>1</IsExecuted><IsExtendedProc>0</IsExtendedProc><IsReplProc>0</IsReplProc><IsSystemProc>0</IsSystemProc><Check_Sum>-221940853</Check_Sum><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>CREATE PROCEDURE uspGetRequirementAging
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>    @password nvarchar(255),
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>    @where_clause nvarchar(500)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>AS
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>DECLARE @sql1 nvarchar(4000)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>SET @sql1= N'SELECT wrap.* FROM (SELECT
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	p.underwriter_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	p.service_associate_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	p.team_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	(select
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	ltrim(rtrim(dbo.clrLSDecrypt(ps.last_name, ''' + @password + ''')) + '', '' + rtrim(dbo.clrLSDecrypt(ps.first_name, ''' + @password + ''')))
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	from
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	person ps, aus_user u
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	where
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	u.person_id = ps.person_id and u.user_id = p.underwriter_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	) as underwriter_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	(select
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	ltrim(rtrim(dbo.clrLSDecrypt(ps.last_name, ''' + @password + ''')) + '', '' + rtrim(dbo.clrLSDecrypt(ps.first_name, ''' + @password + ''')))
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	from
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	person ps, aus_user u
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	where
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	u.person_id = ps.person_id and u.user_id = p.service_associate_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	) as case_manager_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	(select team_name from team where team_id = p.team_id) as team_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	p.policy_number,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	ir.requirement_code,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	(select requirement_name from tl_requirement where requirement_code = ir.requirement_code) as requirement_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	ir.added_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	(select
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	tc.code_value
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	from
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	tl_code tc
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	where
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	tc.code_type = ''RequirementStatus'' and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	tc.code_id = ir.closed_disposition or
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	(ir.closed_disposition is null and tc.code_id = ''O'')
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	) as requirement_status,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	(cast(CURRENT_TIMESTAMP - ir.added_date as int)) as days_aging
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>FROM
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	policy p,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	insured i,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	insured_requirement ir
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>WHERE
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	i.policy_id = p.policy_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	i.policy_person_id = ir.policy_person_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>	(ir.closed_disposition is null or ir.closed_disposition not in (''S'', ''C'', ''W''))) AS wrap '
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>EXEC(@sql1 + @where_clause)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetRequirementAging</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_DEPENDS><SPROC_NAME>uspGetRequirementAging</SPROC_NAME></SPROC_DEPENDS></SPROC><SPROC Action="Add"><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><USER_NAME>dbo</USER_NAME><category>0</category><ExecIsAnsiNullsOn>1</ExecIsAnsiNullsOn><ExecIsQuotedIdentOn>1</ExecIsQuotedIdentOn><ExecIsStartup>0</ExecIsStartup><IsAnsiNullsOn>1</IsAnsiNullsOn><IsQuotedIdentOn>1</IsQuotedIdentOn><IsExecuted>1</IsExecuted><IsExtendedProc>0</IsExtendedProc><IsReplProc>0</IsReplProc><IsSystemProc>0</IsSystemProc><Check_Sum>-269579679</Check_Sum><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>CREATE PROCEDURE uspGetUnmatchedLabs
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>    @password nvarchar(255),
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>    @where_clause nvarchar(500)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>AS
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>DECLARE @sql1 nvarchar(4000)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>SET @sql1= N'SELECT wrap.* FROM (SELECT
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>	dbo.clrLSDecrypt(first_name, ''' + @password + ''') as first_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>	dbo.clrLSDecrypt(last_name, ''' + @password + ''') as last_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>	dbo.clrLSDecrypt(birth_date, ''' + @password + ''') as birth_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>	referrence_number,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>	ticket_number,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>	drawn_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>	lab_receive_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>	-1 as team_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>	-1 as underwriter_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>	-1 as service_associate_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>FROM
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>	lab_header
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>WHERE
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>	requirement_information_id not in (
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>	select
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>	requirement_information_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>	from
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>	insured_requirement
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>	where
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>	requirement_information_id is not null)) AS wrap '
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>EXEC(@sql1 + @where_clause)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_DEPENDS><SPROC_NAME>uspGetUnmatchedLabs</SPROC_NAME></SPROC_DEPENDS></SPROC><SPROC Action="Add"><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><USER_NAME>dbo</USER_NAME><category>0</category><ExecIsAnsiNullsOn>1</ExecIsAnsiNullsOn><ExecIsQuotedIdentOn>1</ExecIsQuotedIdentOn><ExecIsStartup>0</ExecIsStartup><IsAnsiNullsOn>1</IsAnsiNullsOn><IsQuotedIdentOn>1</IsQuotedIdentOn><IsExecuted>1</IsExecuted><IsExtendedProc>0</IsExtendedProc><IsReplProc>0</IsReplProc><IsSystemProc>0</IsSystemProc><Check_Sum>-549992389</Check_Sum><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>CREATE PROCEDURE uspGetUwCaseProductivity
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>    @password nvarchar(255),
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>    @where_clause nvarchar(500)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>AS
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>DECLARE @sql1 nvarchar(4000) 
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>SET @sql1= N'SELECT
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>	p.underwriter_id as user_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>	p.team_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>	p.underwriter_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>	p.service_associate_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>	p.receive_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>	(select
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>	ltrim(rtrim(dbo.clrLSDecrypt(ps.last_name, ''' + @password + ''')) + '', '' + rtrim(dbo.clrLSDecrypt(ps.first_name, ''' + @password + ''')))
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>	from
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>	person ps, aus_user u
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>	where
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>	u.person_id = ps.person_id and u.user_id = underwriter_id
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>	) as user_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>	p.policy_number,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>	(select max(log_date) from policy_log where policy_id = p.policy_id and log_reason_type = 3 and log_reason_code = ''NB'') as new_business_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>	(select max(log_date) from policy_log where policy_id = p.policy_id and log_reason_type = 3 and log_reason_code = ''FA'') as final_action_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>	(select max(log_date) from policy_log where policy_id = p.policy_id and log_reason_type = 3 and log_reason_code = ''CLOSED'' and log_date &gt;= (select max(log_date) from policy_log where policy_id = p.policy_id and log_reason_type = 3 and log_reason_code =</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text> ''FA'')) as closed_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>	cast((select max(log_date) from policy_log where policy_id = p.policy_id and log_reason_type = 3 and log_reason_code = ''FA'') - (select max(log_date) from policy_log where policy_id = p.policy_id and log_reason_type = 3 and log_reason_code = ''NB'') as </Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>int) as days_nb_to_fa,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>	cast((select max(log_date) from policy_log where policy_id = p.policy_id and log_reason_type = 3 and log_reason_code = ''CLOSED'' and log_date &gt;= (select max(log_date) from policy_log where policy_id = p.policy_id and log_reason_type = 3 and log_reason_c</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>ode = ''FA'')) - (select max(log_date) from policy_log where policy_id = p.policy_id and log_reason_type = 3 and log_reason_code = ''FA'') as int) as days_fa_to_closed
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>FROM
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>	policy p '
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>EXEC(@sql1 + @where_clause)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_DEPENDS><SPROC_NAME>uspGetUwCaseProductivity</SPROC_NAME></SPROC_DEPENDS></SPROC><SPROC Action="Add"><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><USER_NAME>dbo</USER_NAME><category>0</category><ExecIsAnsiNullsOn>1</ExecIsAnsiNullsOn><ExecIsQuotedIdentOn>1</ExecIsQuotedIdentOn><ExecIsStartup>0</ExecIsStartup><IsAnsiNullsOn>1</IsAnsiNullsOn><IsQuotedIdentOn>1</IsQuotedIdentOn><IsExecuted>1</IsExecuted><IsExtendedProc>0</IsExtendedProc><IsReplProc>0</IsReplProc><IsSystemProc>0</IsSystemProc><Check_Sum>572584702</Check_Sum><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>CREATE PROCEDURE uspGetUwReferalRvwProductivity
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>    @password nvarchar(255),
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>    @where_clause nvarchar(500)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>AS
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>DECLARE @sql1 nvarchar(4000)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>SET @sql1= N'SELECT wrap.* FROM (SELECT
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	ir.closed_by as user_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	p.team_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	p.underwriter_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	p.service_associate_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	(select
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	ltrim(rtrim(dbo.clrLSDecrypt(ps.last_name, ''' + @password + ''')) + '', '' + rtrim(dbo.clrLSDecrypt(ps.first_name, ''' + @password + ''')))
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	from
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	person ps, aus_user u
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	where
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	u.person_id = ps.person_id and u.user_id = ir.closed_by
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	) as user_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	p.policy_number,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	(select requirement_name from tl_requirement where requirement_code = ir.requirement_code) as work_type,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	(select
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	tc.code_value
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	from
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	tl_code tc
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	where
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	tc.code_type = ''RequirementStatus'' and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	tc.code_id = ir.closed_disposition or
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	(ir.closed_disposition is null and tc.code_id = ''O'')
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	) as status,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	ir.added_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	ir.closed_date
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>FROM
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	policy p,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	insured i,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	insured_requirement ir
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>WHERE
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	i.policy_id = p.policy_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	i.policy_person_id = ir.policy_person_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	ir.requirement_code = ''UWINITRVW'' and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	ir.closed_disposition = ''S''
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>UNION
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>SELECT
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	n.author as user_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	p.team_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	p.underwriter_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	p.service_associate_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	(select
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	ltrim(rtrim(dbo.clrLSDecrypt(ps.last_name, ''' + @password + ''')) + '', '' + rtrim(dbo.clrLSDecrypt(ps.first_name, ''' + @password + ''')))
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	from
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	person ps, aus_user u
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	where
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	u.person_id = ps.person_id and u.user_id = n.author
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	) as user_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	p.policy_number,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	''Referral'' as work_type,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	''Added'' as status,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	n.added_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	n.reviewed_date as closed_date
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>FROM
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	policy p,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	insured i,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	notes n
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>WHERE
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	i.policy_id = p.policy_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	i.policy_person_id = n.policy_person_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	n.note_type = ''Refer'' and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	n.reviewed_by is null
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>UNION
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>SELECT
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	n.reviewed_by as user_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	p.team_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	p.underwriter_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	p.service_associate_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	(select
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	ltrim(rtrim(dbo.clrLSDecrypt(ps.last_name, ''' + @password + ''')) + '', '' + rtrim(dbo.clrLSDecrypt(ps.first_name, ''' + @password + ''')))
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	from
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	person ps, aus_user u
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	where
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	u.person_id = ps.person_id and u.user_id = n.reviewed_by
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	) as user_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	p.policy_number,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	''Referral'' as work_type,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	''Checked-off'' as status,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	n.added_date,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	n.reviewed_date as closed_date
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>FROM
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	policy p,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	insured i,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	notes n
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>WHERE
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	i.policy_id = p.policy_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	i.policy_person_id = n.policy_person_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	n.note_type = ''Refer'' and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>	n.reviewed_by is not null) AS wrap '
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>EXEC(@sql1 + @where_clause)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_DEPENDS><SPROC_NAME>uspGetUwReferalRvwProductivity</SPROC_NAME></SPROC_DEPENDS></SPROC><SPROC Action="Add"><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><USER_NAME>dbo</USER_NAME><category>0</category><ExecIsAnsiNullsOn>1</ExecIsAnsiNullsOn><ExecIsQuotedIdentOn>1</ExecIsQuotedIdentOn><ExecIsStartup>0</ExecIsStartup><IsAnsiNullsOn>1</IsAnsiNullsOn><IsQuotedIdentOn>1</IsQuotedIdentOn><IsExecuted>1</IsExecuted><IsExtendedProc>0</IsExtendedProc><IsReplProc>0</IsReplProc><IsSystemProc>0</IsSystemProc><Check_Sum>-699045425</Check_Sum><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>CREATE PROCEDURE uspGetUwReviewMsgProductivity
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>    @password nvarchar(255),
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>    @where_clause nvarchar(500)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>AS
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>DECLARE @sql1 nvarchar(4000) 
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>SET @sql1= N'SELECT wrap.* FROM (SELECT
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>	rm.checked_off_by as user_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>	p.team_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>	p.underwriter_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>	p.service_associate_id,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>	(select
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>	ltrim(rtrim(dbo.clrLSDecrypt(ps.last_name, ''' + @password + ''')) + '', '' + rtrim(dbo.clrLSDecrypt(ps.first_name, ''' + @password + ''')))
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>	from
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>	person ps, aus_user u
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>	where
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>	u.person_id = ps.person_id and u.user_id = rm.checked_off_by
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>	) as user_name,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>	p.policy_number,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>	''Checkable Review Message'' as work_type,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>	rm.message,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>	''Closed'' as status,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>	rm.check_off_date
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>FROM
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>	policy p,
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>	review_message rm
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>WHERE
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>	rm.policy_id = p.policy_id and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>	rm.checkoff_flag is not null and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>	rm.checkoff_flag &lt;&gt; 0 and
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>	rm.checked_off_by is not null) AS wrap '
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>BEGIN
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>EXEC(@sql1 + @where_clause)
</Text></SPROC_TEXT><SPROC_TEXT><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME><Text>END
</Text></SPROC_TEXT><SPROC_DEPENDS><SPROC_NAME>uspGetUwReviewMsgProductivity</SPROC_NAME></SPROC_DEPENDS></SPROC><FUNC Action="Add"><FUNC_NAME>clrLSDecrypt</FUNC_NAME><USER_NAME>dbo</USER_NAME><category>0</category><ExecIsAnsiNullsOn>0</ExecIsAnsiNullsOn><ExecIsQuotedIdentOn>0</ExecIsQuotedIdentOn><ExecIsStartup>0</ExecIsStartup><IsAnsiNullsOn>0</IsAnsiNullsOn><IsQuotedIdentOn>0</IsQuotedIdentOn><IsDeterministic>0</IsDeterministic><IsInlineFunction>0</IsInlineFunction><IsScalarFunction>1</IsScalarFunction><IsTableFunction>0</IsTableFunction><FUNC_TEXT><FUNC_NAME>clrLSDecrypt</FUNC_NAME><Text>-- Currently there is no way to get all the necessary information for the external function, need to manually add missing values!

</Text></FUNC_TEXT><FUNC_TEXT><FUNC_NAME>clrLSDecrypt</FUNC_NAME><Text>CREATE FUNCTION [dbo.][clrLSDecrypt] ('ADD PARAMETERS HERE!') </Text></FUNC_TEXT><FUNC_TEXT><FUNC_NAME>clrLSDecrypt</FUNC_NAME><Text>RETURN ['ADD RETURN TYPE HERE!'] WITH EXECUTE AS CALLER </Text></FUNC_TEXT><FUNC_TEXT><FUNC_NAME>clrLSDecrypt</FUNC_NAME><Text>AS </Text></FUNC_TEXT><FUNC_TEXT><FUNC_NAME>clrLSDecrypt</FUNC_NAME><Text>EXTERNAL NAME [asmLSDecrypt].['INSERT CLASS NAME HERE!'].['INSERT METHOD NAME HERE!'] </Text></FUNC_TEXT><FUNC_DEPENDS><FUNC_NAME>clrLSDecrypt</FUNC_NAME></FUNC_DEPENDS></FUNC></DataBase_Schema>